Search in sources :

Example 16 with BooleanProperty

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));
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 17 with BooleanProperty

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);
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) DoubleProperty(org.csstudio.opibuilder.properties.DoubleProperty)

Example 18 with BooleanProperty

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));
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) RGB(org.eclipse.swt.graphics.RGB) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 19 with BooleanProperty

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));
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 20 with BooleanProperty

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);
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty)

Aggregations

BooleanProperty (org.csstudio.opibuilder.properties.BooleanProperty)56 IntegerProperty (org.csstudio.opibuilder.properties.IntegerProperty)27 ColorProperty (org.csstudio.opibuilder.properties.ColorProperty)24 ComboProperty (org.csstudio.opibuilder.properties.ComboProperty)19 StringProperty (org.csstudio.opibuilder.properties.StringProperty)17 DoubleProperty (org.csstudio.opibuilder.properties.DoubleProperty)15 ActionsProperty (org.csstudio.opibuilder.properties.ActionsProperty)7 FilePathProperty (org.csstudio.opibuilder.properties.FilePathProperty)7 WidgetPropertyCategory (org.csstudio.opibuilder.properties.WidgetPropertyCategory)5 FontProperty (org.csstudio.opibuilder.properties.FontProperty)4 PVNameProperty (org.csstudio.opibuilder.properties.PVNameProperty)4 PVValueProperty (org.csstudio.opibuilder.properties.PVValueProperty)4 RGB (org.eclipse.swt.graphics.RGB)4 StringListProperty (org.csstudio.opibuilder.properties.StringListProperty)3 ArrayList (java.util.ArrayList)2 ComplexDataProperty (org.csstudio.opibuilder.properties.ComplexDataProperty)2 NameDefinedCategory (org.csstudio.opibuilder.properties.NameDefinedCategory)2 OPIColor (org.csstudio.opibuilder.util.OPIColor)2 UID (java.rmi.server.UID)1 DisplayScaleData (org.csstudio.opibuilder.datadefinition.DisplayScaleData)1