Search in sources :

Example 36 with BooleanProperty

use of org.csstudio.opibuilder.properties.BooleanProperty 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, 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);
}
Also used : FontProperty(org.csstudio.opibuilder.properties.FontProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) PVValueProperty(org.csstudio.opibuilder.properties.PVValueProperty) PVNameProperty(org.csstudio.opibuilder.properties.PVNameProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 37 with BooleanProperty

use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.

the class AbstractBoolWidgetModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new IntegerProperty(PROP_BIT, "Bit", WidgetPropertyCategory.Behavior, -1, -1, 63));
    addProperty(new BooleanProperty(PROP_SHOW_BOOL_LABEL, "Show Boolean Label", WidgetPropertyCategory.Display, false));
    addProperty(new StringProperty(PROP_ON_LABEL, "On Label", WidgetPropertyCategory.Display, DEFAULT_ON_LABEL));
    addProperty(new StringProperty(PROP_OFF_LABEL, "Off Label", WidgetPropertyCategory.Display, DEFAULT_OFF_LABEL));
    addProperty(new ColorProperty(PROP_ON_COLOR, "On Color", WidgetPropertyCategory.Display, DEFAULT_ON_COLOR));
    addProperty(new ColorProperty(PROP_OFF_COLOR, "Off Color", WidgetPropertyCategory.Display, DEFAULT_OFF_COLOR));
    addProperty(new ComboProperty(PROP_DATA_TYPE, "Data Type", WidgetPropertyCategory.Behavior, new String[] { "Bit", "Enum" }, 0));
    addProperty(new StringProperty(PROP_ON_STATE, "On State", WidgetPropertyCategory.Behavior, ""));
    addProperty(new StringProperty(PROP_OFF_STATE, "Off State", WidgetPropertyCategory.Behavior, ""));
    addProperty(new ComboProperty(PROP_BOOL_LABEL_POS, "Boolean Label Position", WidgetPropertyCategory.Display, BoolLabelPosition.stringValues(), 0));
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 38 with BooleanProperty

use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.

the class ActionButtonModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new ComboProperty(PROP_STYLE, "Style", WidgetPropertyCategory.Basic, Style.stringValues(), Style.CLASSIC.ordinal()));
    addProperty(new StringProperty(PROP_TEXT, "Text", WidgetPropertyCategory.Display, "$(actions)", 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, "", FILE_EXTENSIONS));
    removeProperty(PROP_ACTIONS);
    addProperty(new ActionsProperty(PROP_ACTIONS, "Actions", WidgetPropertyCategory.Behavior, false));
    setPropertyVisible(PROP_RELEASED_ACTION_INDEX, DEFAULT_TOGGLE_BUTTON);
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ActionsProperty(org.csstudio.opibuilder.properties.ActionsProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) FilePathProperty(org.csstudio.opibuilder.properties.FilePathProperty)

Example 39 with BooleanProperty

use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.

the class BoolSwitchModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    addProperty(new BooleanProperty(PROP_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
    removeProperty(PROP_ACTIONS);
    addProperty(new ActionsProperty(PROP_ACTIONS, "Actions", WidgetPropertyCategory.Behavior, false));
// setPropertyDescription(PROP_PVNAME, "Readback PV");
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ActionsProperty(org.csstudio.opibuilder.properties.ActionsProperty)

Example 40 with BooleanProperty

use of org.csstudio.opibuilder.properties.BooleanProperty 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, ""));
    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)));
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) RGB(org.eclipse.swt.graphics.RGB) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

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