@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; }
@Override public SymbolicPad create(SymbolicPart part, IPadFactoryContext factoryContext) { SymbolicPad formulaPad = new SymbolicPad(formulaRenderer, factoryContext.getRenderContext()); formulaPad.bindDocumentPart(DefaultObservableValue.fromValue(part)); return formulaPad; }