Search in sources :

Example 1 with StringListProperty

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

the class AbstractChoiceModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new StringListProperty(PROP_ITEMS, "Items", WidgetPropertyCategory.Behavior, Arrays.asList(DEFAULT_ITEMS)));
    addProperty(new BooleanProperty(PROP_ITEMS_FROM_PV, "Items From PV", WidgetPropertyCategory.Behavior, true));
    addProperty(new ColorProperty(PROP_SELECTED_COLOR, "Selected Color", WidgetPropertyCategory.Display, DEFAULT_SELECTED_COLOR));
    addProperty(new BooleanProperty(PROP_HORIZONTAL, "Horizontal", WidgetPropertyCategory.Display, false));
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringListProperty(org.csstudio.opibuilder.properties.StringListProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 2 with StringListProperty

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

the class ByteMonitorModel method configureProperties.

/* (non-Javadoc)
     * @see org.csstudio.opibuilder.model.AbstractWidgetModel#configureProperties()
     */
@Override
protected void configureProperties() {
    addProperty(new IntegerProperty(PROP_NUM_BITS, "Number of Bits", WidgetPropertyCategory.Display, 16, 0, 64));
    addProperty(new IntegerProperty(PROP_START_BIT, "Start Bit", WidgetPropertyCategory.Display, 0, 0, 64));
    addProperty(new BooleanProperty(PROP_HORIZONTAL, "Horizontal", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_BIT_REVERSE, "Reverse Bits", WidgetPropertyCategory.Display, false));
    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 BooleanProperty(PROP_SQUARE_LED, "Square LED", WidgetPropertyCategory.Display, false));
    addProperty(new BooleanProperty(PROP_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
    addProperty(new StringListProperty(PROP_LABELS, "Labels", WidgetPropertyCategory.Display, new ArrayList<String>()));
    addProperty(new IntegerProperty(PROP_LED_BORDER, "LED border", WidgetPropertyCategory.Display, DEFAULT_LED_BORDER));
    addProperty(new ColorProperty(PROP_LED_BORDER_COLOR, "LED border color", WidgetPropertyCategory.Display, DEFAULT_LED_BORDER_COLOR.getRGB()));
    addProperty(new BooleanProperty(PROP_PACK_LEDS, "Pack LEDs", WidgetPropertyCategory.Display, false));
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ArrayList(java.util.ArrayList) StringListProperty(org.csstudio.opibuilder.properties.StringListProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 3 with StringListProperty

use of org.csstudio.opibuilder.properties.StringListProperty 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)

Aggregations

BooleanProperty (org.csstudio.opibuilder.properties.BooleanProperty)3 StringListProperty (org.csstudio.opibuilder.properties.StringListProperty)3 ArrayList (java.util.ArrayList)2 ColorProperty (org.csstudio.opibuilder.properties.ColorProperty)2 IntegerProperty (org.csstudio.opibuilder.properties.IntegerProperty)1