use of org.freeplane.core.resources.components.ComboProperty in project freeplane by freeplane.
the class StyleEditorPanel method addFontSizeControl.
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);
mNodeFontSize.fireOnMouseClick();
}
use of org.freeplane.core.resources.components.ComboProperty in project freeplane by freeplane.
the class StyleEditorPanel method addCloudShapeControl.
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();
}
use of org.freeplane.core.resources.components.ComboProperty in project freeplane by freeplane.
the class StyleEditorPanel method addNodeShapeControl.
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);
mNodeShape.fireOnMouseClick();
}
use of org.freeplane.core.resources.components.ComboProperty in project freeplane by freeplane.
the class MModeWorkspaceLinkController method prepareOptionPanelBuilder.
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);
return new ComboProperty("links", list.toArray(new String[] {}));
}
});
}
}
Aggregations