Beispiel #1
0
 @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);
 }
Beispiel #2
0
 @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);
 }
Beispiel #3
0
 @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);
 }
Beispiel #4
0
 @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) {
   }
 }
Beispiel #5
0
 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;
 }