use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class RoundedRectangleModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new IntegerProperty(PROP_CORNER_WIDTH, "Corner Width", WidgetPropertyCategory.Display, DEFAULT_CORNER_WIDTH));
addProperty(new IntegerProperty(PROP_CORNER_HEIGHT, "Corner Height", WidgetPropertyCategory.Display, DEFAULT_CORNER_HEIGHT));
addProperty(new ColorProperty(PROP_BACKGROUND_GRADIENT_START_COLOR, "Background Gradient Start Color", WidgetPropertyCategory.Display, CustomMediaFactory.COLOR_WHITE));
addProperty(new ColorProperty(PROP_FOREGROUND_GRADIENT_START_COLOR, "Foreground Gradient Start Color", WidgetPropertyCategory.Display, CustomMediaFactory.COLOR_WHITE));
addProperty(new BooleanProperty(PROP_GRADIENT, "Gradient", WidgetPropertyCategory.Display, false));
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class TextInputModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new ComboProperty(PROP_STYLE, "Style", WidgetPropertyCategory.Basic, Style.stringValues(), Style.CLASSIC.ordinal()));
addProperty(new DoubleProperty(PROP_MIN, "Minimum", WidgetPropertyCategory.Behavior, DEFAULT_MIN));
addProperty(new DoubleProperty(PROP_MAX, "Maximum", WidgetPropertyCategory.Behavior, DEFAULT_MAX));
addProperty(new BooleanProperty(PROP_LIMITS_FROM_PV, "Limits From PV", WidgetPropertyCategory.Behavior, true));
addProperty(new BooleanProperty(PROP_MULTILINE_INPUT, "Multi-line Input", WidgetPropertyCategory.Behavior, false));
addProperty(new StringProperty(PROP_DATETIME_FORMAT, "Datetime Format", WidgetPropertyCategory.Display, "yyyy-MM-dd HH:mm:ss"));
addProperty(new ComboProperty(PROP_SELECTOR_TYPE, "Selector Type", WidgetPropertyCategory.Display, SelectorType.stringValues(), SelectorType.NONE.ordinal()));
addProperty(new ComboProperty(PROP_FILE_SOURCE, "File Source", WidgetPropertyCategory.Display, FileSource.stringValues(), FileSource.WORKSPACE.ordinal()));
addProperty(new ComboProperty(PROP_FILE_RETURN_PART, "File Return Part", WidgetPropertyCategory.Display, FileReturnPart.stringValues(), FileReturnPart.FULL_PATH.ordinal()));
addProperty(new StringProperty(PROP_CONFIRM_MESSAGE, "Confirm Message", WidgetPropertyCategory.Behavior, "", true));
addProperty(new BooleanProperty(PROP_SHOW_NATIVE_BORDER, "Show Native Border", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_PASSWORD_INPUT, "Password Input", WidgetPropertyCategory.Behavior, false));
addProperty(new BooleanProperty(PROP_READ_ONLY, "Read Only", WidgetPropertyCategory.Behavior, false));
addProperty(new BooleanProperty(PROP_SHOW_H_SCROLL, "Show Horizontal Scrollbar", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_SHOW_V_SCROLL, "Show Vertical Scrollbar", WidgetPropertyCategory.Display, false));
addProperty(new ComboProperty(PROP_NEXT_FOCUS, "Next Focus", WidgetPropertyCategory.Behavior, FOCUS_TRAVERSE.stringValues(), 0));
setPropertyVisible(PROP_DATETIME_FORMAT, false);
setPropertyVisible(PROP_FILE_RETURN_PART, false);
setPropertyVisible(PROP_FILE_SOURCE, false);
setPropertyVisible(PROP_WRAP_WORDS, false);
setPropertyVisible(PROP_ALIGN_V, false);
setText("");
setPropertyValue(PROP_BORDER_STYLE, BorderStyle.LOWERED.ordinal());
setPropertyValue(PROP_BORDER_ALARMSENSITIVE, false);
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class ThermometerModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new ColorProperty(PROP_FILL_COLOR, "Fill Color", WidgetPropertyCategory.Display, DEFAULT_FILL_COLOR));
addProperty(new BooleanProperty(PROP_FILLCOLOR_ALARM_SENSITIVE, "FillColor Alarm Sensitive", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_SHOW_BULB, "Show Bulb", WidgetPropertyCategory.Display, true));
addProperty(new ComboProperty(PROP_UNIT, "Unit", WidgetPropertyCategory.Display, TemperatureUnit.stringValues(), 0));
addProperty(new ColorProperty(PROP_FILLBACKGROUND_COLOR, "Color Fillbackground", WidgetPropertyCategory.Display, DEFAULT_FILLBACKGROUND_COLOR));
addProperty(new BooleanProperty(PROP_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
setPropertyValue(PROP_LO_COLOR, new RGB(255, 128, 0));
setPropertyValue(PROP_HI_COLOR, new RGB(255, 128, 0));
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class EllipseModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new ColorProperty(PROP_BACKGROUND_GRADIENT_START_COLOR, "Background Gradient Start Color", WidgetPropertyCategory.Display, CustomMediaFactory.COLOR_WHITE));
addProperty(new ColorProperty(PROP_FOREGROUND_GRADIENT_START_COLOR, "Foreground Gradient Start Color", WidgetPropertyCategory.Display, CustomMediaFactory.COLOR_WHITE));
addProperty(new BooleanProperty(PROP_GRADIENT, "Gradient", WidgetPropertyCategory.Display, false));
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class GridLayoutModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new IntegerProperty(PROP_NUMBER_OF_COLUMNS, "Number of Columns", WidgetPropertyCategory.Display, 3, 1, 1000));
addProperty(new BooleanProperty(PROP_FILL_GRIDS, "Fill Grids", WidgetPropertyCategory.Display, false));
addProperty(new IntegerProperty(PROP_GRID_GAP, "Grid Gap", WidgetPropertyCategory.Display, 2, 0, 100));
removeProperty(PROP_FONT);
}
Aggregations