Package org.freeplane.core.resources.components

Examples of org.freeplane.core.resources.components.IPropertyControlCreator


  public void prepareOptionPanelBuilder(OptionPanelBuilder builder) {
    IndexedTree.Node node = (IndexedTree.Node) builder.getRoot();
    String path = "Environment/hyperlink_types/links";
    final IndexedTree.Node found = getNodeForPath(path, node);
    if(found != null) {
      found.setUserObject(new IPropertyControlCreator() {
        private final IPropertyControlCreator creator = (IPropertyControlCreator) found.getUserObject();
        public IPropertyControl createControl() {
          ComboProperty property = (ComboProperty) creator.createControl();
          List<String> list = property.getPossibleValues();
          list.add(MModeWorkspaceLinkController.LINK_RELATIVE_TO_PROJECT_PROPERTY);
View Full Code Here


    actions.add(modeController.getAction("RemoveIconAction"));
    actions.add(modeController.getAction("RemoveAllIconsAction"));

    for (final AFreeplaneAction iconAction : actions) {
      final IIconInformation info = (IIconInformation) iconAction;
      optionPanelBuilder.addCreator("Keystrokes/icons", new IPropertyControlCreator() {
        public IPropertyControl createControl() {
          final KeyProperty keyProperty = new KeyProperty(info.getShortcutKey(), info.getTranslationKeyLabel());
          keyProperty.setImageIcon(info.getIcon());
          keyProperty.disableModifiers();
          return keyProperty;
View Full Code Here

  }

  private void createPreferences() {
    final MModeController modeController = (MModeController) Controller.getCurrentModeController();
    final OptionPanelBuilder optionPanelBuilder = modeController.getOptionPanelBuilder();
    optionPanelBuilder.addCreator("Environment/load", new IPropertyControlCreator() {
      public IPropertyControl createControl() {
        final Set<String> charsets = Charset.availableCharsets().keySet();
        final LinkedList<String> charsetList = new LinkedList<String>(charsets);
        charsetList.addFirst("JVMdefault");
        final LinkedList<String> charsetTranslationList = new LinkedList<String>(charsets);
View Full Code Here

TOP

Related Classes of org.freeplane.core.resources.components.IPropertyControlCreator

Copyright © 2018 www.massapicom. 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.