Search in sources :

Example 11 with IntegerProperty

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

Example 12 with IntegerProperty

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

the class PolyLineModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    removeProperty(PROP_LINE_COLOR);
    addProperty(new ComboProperty(PROP_ARROW, "Arrows", WidgetPropertyCategory.Display, ArrowType.stringValues(), 0));
    addProperty(new BooleanProperty(PROP_FILL_ARROW, "Fill Arrow", WidgetPropertyCategory.Display, true));
    addProperty(new IntegerProperty(PROP_ARROW_LENGTH, "Arrow Length", WidgetPropertyCategory.Display, 20, 1, 1000));
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty)

Example 13 with IntegerProperty

use of org.csstudio.opibuilder.properties.IntegerProperty 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 14 with IntegerProperty

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

the class SashContainerModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new BooleanProperty(PROP_TRANSPARENT, "Transparent", WidgetPropertyCategory.Display, false));
    addProperty(new BooleanProperty(PROP_HORIZONTAL, "Horizontal", WidgetPropertyCategory.Display, true));
    addProperty(new ComboProperty(PROP_SASH_STYLE, "Sash Style", WidgetPropertyCategory.Display, SashContainerFigure.SashStyle.stringValues(), 2));
    addProperty(new DoubleProperty(PROP_SASH_POSITION, "Sash Position", WidgetPropertyCategory.Display, 0.5));
    addProperty(new IntegerProperty(PROP_SASH_WIDTH, "Sash Width", WidgetPropertyCategory.Display, 3, 1, 100));
    // addProperty(new BooleanProperty(PROP_LOCK_CHILDREN, "Lock Children",
    // WidgetPropertyCategory.Behavior, false));
    addProperty(new BooleanProperty(PROP_PANEL1_AUTO_SCALE_CHILDREN, "Auto Scale Children (at Runtime)", new WidgetPropertyCategory() {

        @Override
        public String toString() {
            return "Panel 1 (Left/Up)";
        }
    }, false));
    addProperty(new BooleanProperty(PROP_PANEL2_AUTO_SCALE_CHILDREN, "Auto Scale Children (at Runtime)", new WidgetPropertyCategory() {

        @Override
        public String toString() {
            return "Panel 2 (Right/Down)";
        }
    }, false));
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) WidgetPropertyCategory(org.csstudio.opibuilder.properties.WidgetPropertyCategory) DoubleProperty(org.csstudio.opibuilder.properties.DoubleProperty)

Example 15 with IntegerProperty

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

Aggregations

IntegerProperty (org.csstudio.opibuilder.properties.IntegerProperty)29 BooleanProperty (org.csstudio.opibuilder.properties.BooleanProperty)27 ComboProperty (org.csstudio.opibuilder.properties.ComboProperty)14 ColorProperty (org.csstudio.opibuilder.properties.ColorProperty)12 StringProperty (org.csstudio.opibuilder.properties.StringProperty)12 DoubleProperty (org.csstudio.opibuilder.properties.DoubleProperty)9 PropertyChangeEvent (java.beans.PropertyChangeEvent)4 PropertyChangeListener (java.beans.PropertyChangeListener)4 PVNameProperty (org.csstudio.opibuilder.properties.PVNameProperty)4 WidgetPropertyCategory (org.csstudio.opibuilder.properties.WidgetPropertyCategory)4 ActionsProperty (org.csstudio.opibuilder.properties.ActionsProperty)3 FontProperty (org.csstudio.opibuilder.properties.FontProperty)3 PVValueProperty (org.csstudio.opibuilder.properties.PVValueProperty)3 ComplexDataProperty (org.csstudio.opibuilder.properties.ComplexDataProperty)2 FilePathProperty (org.csstudio.opibuilder.properties.FilePathProperty)2 NameDefinedCategory (org.csstudio.opibuilder.properties.NameDefinedCategory)2 IPath (org.eclipse.core.runtime.IPath)2 Path (org.eclipse.core.runtime.Path)2 RGB (org.eclipse.swt.graphics.RGB)2 UID (java.rmi.server.UID)1