use of org.csstudio.opibuilder.properties.StringProperty in project yamcs-studio by yamcs.
the class ActionButtonModel method configureProperties.
/**
* {@inheritDoc}
*/
@Override
protected void configureProperties() {
addProperty(new ComboProperty(PROP_STYLE, "Style", WidgetPropertyCategory.Basic, Style.stringValues(), getDefaultStyle().ordinal()));
addProperty(new StringProperty(PROP_TEXT, "Text", WidgetPropertyCategory.Display, "$(actions)", // $NON-NLS-1$
true));
addProperty(new IntegerProperty(PROP_ACTION_INDEX, "Click Action Index", WidgetPropertyCategory.Behavior, 0, -1, Integer.MAX_VALUE));
addProperty(new IntegerProperty(PROP_RELEASED_ACTION_INDEX, "Release Action Index", WidgetPropertyCategory.Behavior, 0, -1, Integer.MAX_VALUE));
addProperty(new BooleanProperty(PROP_TOGGLE_BUTTON, "Toggle Button", WidgetPropertyCategory.Behavior, DEFAULT_TOGGLE_BUTTON));
addProperty(new FilePathProperty(PROP_IMAGE, "Icon File", WidgetPropertyCategory.Display, new Path(""), // $NON-NLS-1$
FILE_EXTENSIONS));
removeProperty(PROP_ACTIONS);
addProperty(new ActionsProperty(PROP_ACTIONS, "Actions", WidgetPropertyCategory.Behavior, false));
setPropertyVisible(PROP_RELEASED_ACTION_INDEX, DEFAULT_TOGGLE_BUTTON);
}
use of org.csstudio.opibuilder.properties.StringProperty in project yamcs-studio by yamcs.
the class CheckBoxModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new IntegerProperty(PROP_BIT, "Bit", WidgetPropertyCategory.Behavior, 0, -1, 63));
addProperty(new StringProperty(PROP_LABEL, "Label", WidgetPropertyCategory.Display, // $NON-NLS-1$
""));
addProperty(new BooleanProperty(PROP_AUTOSIZE, "Auto Size", WidgetPropertyCategory.Display, false));
addProperty(new ColorProperty(PROP_SELECTED_COLOR, "Selected Color", WidgetPropertyCategory.Display, new RGB(77, 77, 77)));
}
use of org.csstudio.opibuilder.properties.StringProperty in project yamcs-studio by yamcs.
the class LEDModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new BooleanProperty(PROP_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SQUARE_LED, "Square LED", WidgetPropertyCategory.Display, false));
setPropertyVisible(PROP_BOOL_LABEL_POS, false);
addProperty(new IntegerProperty(PROP_NSTATES, "State Count", WidgetPropertyCategory.Behavior, 2, 2, LEDFigure.MAX_NSTATES));
setPropertyVisibleAndSavable(PROP_NSTATES, true, false);
WidgetPropertyCategory category = new NameDefinedCategory("State Fallback");
addProperty(new StringProperty(PROP_STATE_FALLBACK_LABEL, "Label", category, LEDFigure.DEFAULT_STATE_FALLBACK_LABAL));
setPropertyVisibleAndSavable(PROP_STATE_FALLBACK_LABEL, false, false);
addProperty(new ColorProperty(PROP_STATE_FALLBACK_COLOR, "Color", category, LEDFigure.DEFAULT_STATE_FALLBACK_COLOR.getRGB()));
setPropertyVisibleAndSavable(PROP_STATE_FALLBACK_COLOR, false, false);
addProperty(new IntegerProperty(PROP_BULB_BORDER, "Bulb border", WidgetPropertyCategory.Display, LEDFigure.DEFAULT_BULB_BORDER_WIDTH));
addProperty(new ColorProperty(PROP_BULB_BORDER_COLOR, "Bulb border color", WidgetPropertyCategory.Display, LEDFigure.DEFAULT_BULB_BORDER_COLOR.getRGB()));
for (int state = 0; state < LEDFigure.MAX_NSTATES; state++) {
category = new NameDefinedCategory(String.format("State %02d", state + 1));
addProperty(new StringProperty(String.format(PROP_STATE_LABEL, state), "Label", category, LEDFigure.DEFAULT_STATE_LABELS[state]));
setPropertyVisibleAndSavable(String.format(PROP_STATE_LABEL, state), false, false);
addProperty(new ColorProperty(String.format(PROP_STATE_COLOR, state), "Color", category, LEDFigure.DEFAULT_STATE_COLORS[state].getRGB()));
setPropertyVisibleAndSavable(String.format(PROP_STATE_COLOR, state), false, false);
addProperty(new DoubleProperty(String.format(PROP_STATE_VALUE, state), "Value", category, LEDFigure.DEFAULT_STATE_VALUES[state]));
setPropertyVisibleAndSavable(String.format(PROP_STATE_VALUE, state), false, false);
}
}
use of org.csstudio.opibuilder.properties.StringProperty in project yamcs-studio by yamcs.
the class WebBrowserModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new StringProperty(PROP_URL, "URL", WidgetPropertyCategory.Basic, // $NON-NLS-2$
""));
addProperty(new BooleanProperty(PROP_SHOW_TOOLBAR, "Show Toolbar", WidgetPropertyCategory.Display, true));
setPropertyVisible(PROP_FONT, false);
}
use of org.csstudio.opibuilder.properties.StringProperty in project yamcs-studio by yamcs.
the class XYGraphModel method configureProperties.
@Override
protected void configureProperties() {
addPVProperty(new PVNameProperty(PROP_TRIGGER_PV, "Trigger PV", WidgetPropertyCategory.Behavior, ""), new PVValueProperty(PROP_TRIGGER_PV_VALUE, null));
addProperty(new StringProperty(PROP_TITLE, "Title", WidgetPropertyCategory.Display, ""));
addProperty(new FontProperty(PROP_TITLE_FONT, "Title Font", WidgetPropertyCategory.Display, // $NON-NLS-1$
MediaService.DEFAULT_BOLD_FONT));
addProperty(new BooleanProperty(PROP_SHOW_LEGEND, "Show Legend", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SHOW_PLOTAREA_BORDER, "Show Plot Area Border", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_SHOW_TOOLBAR, "Show Toolbar", WidgetPropertyCategory.Display, true));
addProperty(new ColorProperty(PROP_PLOTAREA_BACKCOLOR, "Plot Area Background Color", WidgetPropertyCategory.Display, DEFAULT_PLOTAREA_BACKCOLOR));
addProperty(new BooleanProperty(PROP_TRANSPARENT, "Transparent", WidgetPropertyCategory.Display, false));
addProperty(new IntegerProperty(PROP_AXIS_COUNT, "Axis Count", WidgetPropertyCategory.Behavior, 2, 2, MAX_AXES_AMOUNT));
addProperty(new IntegerProperty(PROP_TRACE_COUNT, "Trace Count", WidgetPropertyCategory.Behavior, 1, 0, MAX_TRACES_AMOUNT));
addAxisProperties();
addTraceProperties();
setPropertyVisible(PROP_FONT, false);
}
Aggregations