Esempio n. 1
0
 @Override
 public TablePad create(TablePart part, IPadFactoryContext factoryContext) {
   TablePad tablePad = new TablePad();
   DefaultObservableValue<TablePart> model = new DefaultObservableValue<TablePart>();
   model.setValue(part);
   tablePad.bindDocumentPart(model);
   return tablePad;
 }
Esempio n. 2
0
 @Override
 public SymbolicPad create(SymbolicPart part, IPadFactoryContext factoryContext) {
   SymbolicPad formulaPad = new SymbolicPad(formulaRenderer, factoryContext.getRenderContext());
   formulaPad.bindDocumentPart(DefaultObservableValue.fromValue(part));
   return formulaPad;
 }