Examples of JFreeplaneMenuItem


Examples of org.freeplane.core.ui.components.JFreeplaneMenuItem

      menuBuilder.removeChildElements(MENU_CATEGORY);
      List<AFreeplaneAction> openMapActions = createOpenLastMapActionList();
      for(AFreeplaneAction openMapAction:openMapActions)
      {
        final IFreeplaneAction acceleratableAction = menuBuilder.acceleratableAction(openMapAction);
        final JMenuItem item = new JFreeplaneMenuItem(acceleratableAction);
        item.setMnemonic(0);
        menuBuilder.addMenuItem(MENU_CATEGORY, item, MENU_CATEGORY + '/' + openMapAction.getKey(),
            UIBuilder.AS_CHILD);
      }
    }
  }
View Full Code Here

Examples of org.freeplane.core.ui.components.JFreeplaneMenuItem

    final JMenuItem item;
    if (action.getClass().getAnnotation(SelectableAction.class) != null) {
      item = new JAutoCheckBoxMenuItem(action);
    }
    else {
      item = new JFreeplaneMenuItem(action);
    }
    popupMenu.add(item);
    return;
  }
View Full Code Here

Examples of org.freeplane.core.ui.components.JFreeplaneMenuItem

    final JMenuItem item;
    if (action.getClass().getAnnotation(SelectableAction.class) != null) {
      item = new JAutoCheckBoxMenuItem(action);
    }
    else {
      item = new JFreeplaneMenuItem(action);
    }
    popupMenu.add(item, index);
    addListeners(popupMenu, action);
    return;
  }
View Full Code Here

Examples of org.freeplane.core.ui.components.JFreeplaneMenuItem

      final JMenuItem item;
      if (action.getClass().getAnnotation(SelectableAction.class) != null) {
        item = new JAutoCheckBoxMenuItem(action);
      }
      else {
        item = new JFreeplaneMenuItem(action);
      }
      popupMenu.add(item, index);
      addListeners(popupMenu, action);
    }
    return;
View Full Code Here

Examples of org.freeplane.core.ui.components.JFreeplaneMenuItem

    return ColorUtils.colorToString(getColorValue());
  }

  public void layout(final DefaultFormBuilder builder) {
    layout(builder, mButton);
    final JMenuItem item = new JFreeplaneMenuItem(TextUtils.getOptionalText("ColorProperty.ResetColor"));
    item.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {
        setValue(defaultColor);
      }
    });
    menu.add(item);
View Full Code Here

Examples of org.freeplane.core.ui.components.JFreeplaneMenuItem

    MenuBuilder.setLabelAndMnemonic(menu, text);
    return menu;
  }

  static public JMenuItem createMenuItem(final String name) {
    final JMenuItem menu = new JFreeplaneMenuItem();
    final String text = TextUtils.getRawText(name);
    MenuBuilder.setLabelAndMnemonic(menu, text);
    return menu;
  }
View Full Code Here

Examples of org.freeplane.core.ui.components.JFreeplaneMenuItem

    final JMenuItem item;
    if (action.getClass().getAnnotation(SelectableAction.class) != null) {
      item = new JAutoCheckBoxMenuItem(decorateAction(category, action));
    }
    else {
      item = new JFreeplaneMenuItem(decorateAction(category, action));
    }
    addMenuItem(category, item, key, position);
    addListeners(key, action);
    return;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.