Search in sources :

Example 6 with ComboProperty

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

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

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

use of org.csstudio.opibuilder.properties.ComboProperty 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, // $NON-NLS-1$
    "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, "", // $NON-NLS-1$
    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);
    // $NON-NLS-1$
    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 10 with ComboProperty

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

Aggregations

ComboProperty (org.csstudio.opibuilder.properties.ComboProperty)20 BooleanProperty (org.csstudio.opibuilder.properties.BooleanProperty)19 IntegerProperty (org.csstudio.opibuilder.properties.IntegerProperty)14 StringProperty (org.csstudio.opibuilder.properties.StringProperty)8 ColorProperty (org.csstudio.opibuilder.properties.ColorProperty)7 DoubleProperty (org.csstudio.opibuilder.properties.DoubleProperty)6 PropertyChangeEvent (java.beans.PropertyChangeEvent)3 PropertyChangeListener (java.beans.PropertyChangeListener)3 FilePathProperty (org.csstudio.opibuilder.properties.FilePathProperty)3 WidgetPropertyCategory (org.csstudio.opibuilder.properties.WidgetPropertyCategory)3 IPath (org.eclipse.core.runtime.IPath)3 Path (org.eclipse.core.runtime.Path)3 ActionsProperty (org.csstudio.opibuilder.properties.ActionsProperty)2 PVNameProperty (org.csstudio.opibuilder.properties.PVNameProperty)2 PVValueProperty (org.csstudio.opibuilder.properties.PVValueProperty)2 RGB (org.eclipse.swt.graphics.RGB)2 UID (java.rmi.server.UID)1 List (java.util.List)1 WidgetScaleData (org.csstudio.opibuilder.datadefinition.WidgetScaleData)1 AbstractWidgetModel (org.csstudio.opibuilder.model.AbstractWidgetModel)1