use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class EdgeColorControlGroup method addControlGroup.
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetEdgeColor = new BooleanProperty(ControlGroup.SET_RESOURCE);
mEdgeColor = new ColorProperty(EdgeColorControlGroup.EDGE_COLOR, ColorUtils.colorToString(EdgeController.STANDARD_EDGE_COLOR));
propertyChangeListener = new EdgeColorChangeListener(mSetEdgeColor, mEdgeColor);
mSetEdgeColor.addPropertyChangeListener(propertyChangeListener);
mEdgeColor.addPropertyChangeListener(propertyChangeListener);
mSetEdgeColor.layout(formBuilder);
;
mEdgeColor.layout(formBuilder);
;
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class FontSizeControlGroup method addControlGroup.
@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetNodeFontSize = new BooleanProperty(ControlGroup.SET_RESOURCE);
final List<String> sizesVector = new ArrayList<String>(Arrays.asList(MUIFactory.FONT_SIZES));
mNodeFontSize = new ComboProperty(NODE_FONT_SIZE, sizesVector, sizesVector);
mNodeFontSize.setEditable(true);
propertyChangeListener = new FontSizeChangeListener(mSetNodeFontSize, mNodeFontSize);
mSetNodeFontSize.addPropertyChangeListener(propertyChangeListener);
mNodeFontSize.addPropertyChangeListener(propertyChangeListener);
mSetNodeFontSize.layout(formBuilder);
mNodeFontSize.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class FontStrikeThroughControlGroup method addControlGroup.
@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetNodeFontStrikeThrough = new BooleanProperty(ControlGroup.SET_RESOURCE);
mNodeFontStrikeThrough = new BooleanProperty(NODE_FONT_STRIKE_THROUGH);
propertyChangeListener = new FontStrikeThroughChangeListener(mSetNodeFontStrikeThrough, mNodeFontStrikeThrough);
mSetNodeFontStrikeThrough.addPropertyChangeListener(propertyChangeListener);
mNodeFontStrikeThrough.addPropertyChangeListener(propertyChangeListener);
mSetNodeFontStrikeThrough.layout(formBuilder);
mNodeFontStrikeThrough.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class FormatControlGroup method addControlGroup.
@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetNodeFormat = new BooleanProperty(ControlGroup.SET_RESOURCE);
mNodeFormat = new EditablePatternComboProperty(NODE_FORMAT, PatternFormat.getIdentityPatternFormat(), FormatController.getController().getAllFormats());
propertyChangeListener = new NodeFormatChangeListener(mSetNodeFormat, mNodeFormat);
mSetNodeFormat.addPropertyChangeListener(propertyChangeListener);
mNodeFormat.addPropertyChangeListener(propertyChangeListener);
mSetNodeFormat.layout(formBuilder);
mNodeFormat.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class NodeBackgroundColorControlGroup method addControlGroup.
@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetNodeBackgroundColor = new BooleanProperty(ControlGroup.SET_RESOURCE);
mNodeBackgroundColor = new ColorProperty(NODE_BACKGROUND_COLOR, ResourceController.getResourceController().getDefaultProperty(NODE_BACKGROUND_COLOR));
propertyChangeListener = new BgColorChangeListener(mSetNodeBackgroundColor, mNodeBackgroundColor);
mSetNodeBackgroundColor.addPropertyChangeListener(propertyChangeListener);
mNodeBackgroundColor.addPropertyChangeListener(propertyChangeListener);
mSetNodeBackgroundColor.layout(formBuilder);
mNodeBackgroundColor.layout(formBuilder);
}
Aggregations