use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class StyleEditorPanel method addStyleBox.
private void addStyleBox(final DefaultFormBuilder rightBuilder) {
mStyleBox = uiFactory.createStyleBox();
mSetStyle = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
final StyleChangeListener listener = new StyleChangeListener();
mSetStyle.addPropertyChangeListener(listener);
mSetStyle.layout(rightBuilder);
rightBuilder.append(new JLabel(TextUtils.getText("style")));
rightBuilder.append(mStyleBox);
rightBuilder.nextLine();
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class StyleEditorPanel method addEdgeStyleControl.
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();
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class StyleEditorPanel method addEdgeWidthControl.
private void addEdgeWidthControl(final List<IPropertyControl> controls) {
mSetEdgeWidth = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
controls.add(mSetEdgeWidth);
mEdgeWidth = new NumberProperty(StyleEditorPanel.EDGE_WIDTH, 0, 100, 1);
controls.add(mEdgeWidth);
final EdgeWidthChangeListener listener = new EdgeWidthChangeListener(mSetEdgeWidth, mEdgeWidth);
mSetEdgeWidth.addPropertyChangeListener(listener);
mEdgeWidth.addPropertyChangeListener(listener);
mEdgeWidth.fireOnMouseClick();
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class NodeNumberingControlGroup method addControlGroup.
@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetNodeNumbering = new BooleanProperty(ControlGroup.SET_RESOURCE);
mNodeNumbering = new BooleanProperty(NODE_NUMBERING);
propertyChangeListener = new NodeNumberingChangeListener(mSetNodeNumbering, mNodeNumbering);
mSetNodeNumbering.addPropertyChangeListener(propertyChangeListener);
mNodeNumbering.addPropertyChangeListener(propertyChangeListener);
mSetNodeNumbering.layout(formBuilder);
mNodeNumbering.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class StyleControlGroup method addStyleBox.
private void addStyleBox(final DefaultFormBuilder formBuilder) {
mStyleBox = uiFactory.createStyleBox();
mSetStyle = new BooleanProperty(ControlGroup.SET_RESOURCE);
final StyleChangeListener listener = new StyleChangeListener();
mSetStyle.addPropertyChangeListener(listener);
mSetStyle.layout(formBuilder);
formBuilder.append(new JLabel(TextUtils.getText("style")));
formBuilder.append(mStyleBox);
formBuilder.nextLine();
}
Aggregations