Package org.freeplane.core.resources.components

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


    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);
          return new ComboProperty("links", list.toArray(new String[] {}));
        }

      });
    }
  }
View Full Code Here


  }

  private void addEdgeStyleControl(final List<IPropertyControl> controls) {
    mSetEdgeStyle = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetEdgeStyle);
    mEdgeStyle = new ComboProperty(StyleEditorPanel.EDGE_STYLE, EDGE_STYLES);
    controls.add(mEdgeStyle);
    final EdgeStyleChangeListener listener = new EdgeStyleChangeListener(mSetEdgeStyle, mEdgeStyle);
    mSetEdgeStyle.addPropertyChangeListener(listener);
    mEdgeStyle.addPropertyChangeListener(listener);
    mEdgeStyle.fireOnMouseClick();
View Full Code Here

    mEdgeStyle.addPropertyChangeListener(listener);
    mEdgeStyle.fireOnMouseClick();
  }

  private void addCloudShapeControl(final List<IPropertyControl> controls) {
    mCloudShape = new ComboProperty(StyleEditorPanel.CLOUD_SHAPE, CLOUD_SHAPES);
    controls.add(mCloudShape);
    final CloudShapeChangeListener listener = new CloudShapeChangeListener(mSetCloud, mCloudShape);
    mSetCloud.addPropertyChangeListener(listener);
    mCloudShape.addPropertyChangeListener(listener);
    mCloudShape.fireOnMouseClick();
View Full Code Here

  private void addFontSizeControl(final List<IPropertyControl> controls) {
    mSetNodeFontSize = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetNodeFontSize);
    final List<String> sizesVector = new ArrayList<String>(Arrays.asList(MUIFactory.FONT_SIZES));
    mNodeFontSize = new ComboProperty(StyleEditorPanel.NODE_FONT_SIZE, sizesVector, sizesVector);
    mNodeFontSize.setEditable(true);
    controls.add(mNodeFontSize);
    final FontSizeChangeListener listener = new FontSizeChangeListener(mSetNodeFontSize, mNodeFontSize);
    mSetNodeFontSize.addPropertyChangeListener(listener);
    mNodeFontSize.addPropertyChangeListener(listener);
View Full Code Here

  }

  private void addNodeShapeControl(final List<IPropertyControl> controls) {
    mSetNodeShape = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetNodeShape);
    mNodeShape = new ComboProperty(StyleEditorPanel.NODE_SHAPE, new String[] { "fork", "bubble", "as_parent",
            "combined" });
    controls.add(mNodeShape);
    final NodeShapeChangeListener listener = new NodeShapeChangeListener(mSetNodeShape, mNodeShape);
    mSetNodeShape.addPropertyChangeListener(listener);
    mNodeShape.addPropertyChangeListener(listener);
View Full Code Here

        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);
        charsetTranslationList.addFirst(TextUtils.getText("OptionPanel.default"));
        return new ComboProperty("default_charset", charsetList, charsetTranslationList);
      }
    }, IndexedTree.AS_CHILD);
  }
View Full Code Here

TOP

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

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.