@Override void applyValue(final boolean enabled, final NodeModel node, final PropertyChangeEvent evt) { final MNodeStyleController styleController = (MNodeStyleController) Controller.getCurrentModeController().getExtension(NodeStyleController.class); styleController.setNodeFormat(node, enabled ? mNodeFormat.getSelectedPattern() : null); }
@Override void applyValue(final boolean enabled, final NodeModel node, final PropertyChangeEvent evt) { final MNodeStyleController styleController = (MNodeStyleController) Controller.getCurrentModeController().getExtension(NodeStyleController.class); styleController.setNodeNumbering(node, enabled ? mNodeNumbering.getBooleanValue() : null); }
@Override void applyValue(final boolean enabled, final NodeModel node, final PropertyChangeEvent evt) { final MNodeStyleController styleController = (MNodeStyleController) Controller.getCurrentModeController().getExtension(NodeStyleController.class); styleController.setMinNodeWidth( node, enabled ? Integer.parseInt(mMinNodeWidth.getValue()) : NodeSizeModel.NOT_SET); }
@Override void applyValue(final boolean enabled, final NodeModel node, final PropertyChangeEvent evt) { final MNodeStyleController styleController = (MNodeStyleController) Controller.getCurrentModeController().getExtension(NodeStyleController.class); try { styleController.setFontSize( node, enabled ? Integer.valueOf(mNodeFontSize.getValue()) : null); } catch (NumberFormatException e) { } }
private void changeToolbar(final NodeModel node) { final Controller controller = Controller.getCurrentController(); final MNodeStyleController styleController = (MNodeStyleController) controller.getModeController().getExtension(NodeStyleController.class); selectFontSize(Integer.toString(styleController.getFontSize(node))); selectFontName(styleController.getFontFamilyName(node)); final LogicalStyleController logicalStyleController = LogicalStyleController.getController(); ignoreChangeEvent = true; styles.setSelectedItem(logicalStyleController.getFirstStyle(node)); ignoreChangeEvent = false; }