Search in sources :

Example 21 with BooleanProperty

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

the class ImageBoolIndicatorModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    addProperty(new FilePathProperty(PROP_ON_IMAGE, "On Image", WidgetPropertyCategory.Image, "", FILE_EXTENSIONS));
    addProperty(new FilePathProperty(PROP_OFF_IMAGE, "Off Image", WidgetPropertyCategory.Image, "", FILE_EXTENSIONS));
    addProperty(new BooleanProperty(PROP_STRETCH, "Stretch to Fit", WidgetPropertyCategory.Image, false));
    addProperty(new BooleanProperty(PROP_AUTOSIZE, "Auto Size", WidgetPropertyCategory.Image, true));
    addProperty(new BooleanProperty(PROP_NO_ANIMATION, "No Animation", WidgetPropertyCategory.Image, false));
    addProperty(new BooleanProperty(PROP_ALIGN_TO_NEAREST_SECOND, "Animation aligned to the nearest second", WidgetPropertyCategory.Image, false));
    setPropertyVisible(PROP_ON_COLOR, false);
    setPropertyVisible(PROP_OFF_COLOR, false);
    FigureTransparencyHelper.addProperty(this);
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) FilePathProperty(org.csstudio.opibuilder.properties.FilePathProperty)

Example 22 with BooleanProperty

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

the class LinkingContainerModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new BooleanProperty(PROP_ZOOMTOFITALL, "Zoom to Fit", WidgetPropertyCategory.Display, true));
    setPropertyVisibleAndSavable(PROP_ZOOMTOFITALL, false, false);
    addProperty(new BooleanProperty(PROP_AUTO_SIZE, "Auto Size", WidgetPropertyCategory.Display, true));
    setPropertyVisibleAndSavable(PROP_AUTO_SIZE, false, false);
    addProperty(new ComboProperty(PROP_RESIZE_BEHAVIOUR, "Resize Behaviour", WidgetPropertyCategory.Display, ResizeBehaviour.stringValues, ResizeBehaviour.SIZE_OPI_TO_CONTAINER.ordinal()));
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty)

Example 23 with BooleanProperty

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

the class MeterModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    addProperty(new ColorProperty(PROP_NEEDLE_COLOR, "Needle Color", WidgetPropertyCategory.Display, DEFAULT_NEEDLE_COLOR));
    addProperty(new BooleanProperty(PROP_RAMP_GRADIENT, "Ramp Gradient", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_SHOW_VALUE_LABEL, "Show Value Label", WidgetPropertyCategory.Display, true));
    setPropertyDescription(PROP_SHOW_MARKERS, "Show Ramp");
    // Ramp cannot be transparent.
    setPropertyValue(PROP_TRANSPARENT, false);
    removeProperty(PROP_TRANSPARENT);
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 24 with BooleanProperty

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

the class ComboModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new StringListProperty(PROP_ITEMS, "Items", WidgetPropertyCategory.Behavior, new ArrayList<String>()));
    addProperty(new BooleanProperty(PROP_ITEMS_FROM_PV, "Items From PV", WidgetPropertyCategory.Behavior, false));
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ArrayList(java.util.ArrayList) StringListProperty(org.csstudio.opibuilder.properties.StringListProperty)

Example 25 with BooleanProperty

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

the class LabelModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new StringProperty(PROP_TEXT, "Text", WidgetPropertyCategory.Display, "Label", true));
    addProperty(new BooleanProperty(PROP_TRANSPARENT, "Transparent", WidgetPropertyCategory.Display, !pvModel));
    addProperty(new BooleanProperty(PROP_AUTOSIZE, "Auto Size", WidgetPropertyCategory.Display, false));
    addProperty(new ComboProperty(PROP_ALIGN_H, "Horizontal Alignment", WidgetPropertyCategory.Display, H_ALIGN.stringValues(), 1));
    addProperty(new ComboProperty(PROP_ALIGN_V, "Vertical Alignment", WidgetPropertyCategory.Display, V_ALIGN.stringValues(), 1));
    addProperty(new BooleanProperty(PROP_WRAP_WORDS, "Wrap Words", WidgetPropertyCategory.Behavior, false));
    addProperty(new BooleanProperty(PROP_SHOW_SCROLLBAR, "Show Scrollbar", WidgetPropertyCategory.Behavior, false));
    if (!pvModel) {
        setTooltip("");
        setPropertyVisible(PROP_PVNAME, false);
        setPropertyVisible(PROP_PVVALUE, false);
        setPropertyVisible(PROP_BACKCOLOR_ALARMSENSITIVE, false);
        setPropertyVisible(PROP_BORDER_ALARMSENSITIVE, false);
        setPropertyVisible(PROP_FORECOLOR_ALARMSENSITIVE, false);
        setPropertyVisible(PROP_ALARM_PULSING, false);
    }
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty)

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