Search in sources :

Example 6 with IntegerProperty

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

the class AbstractBoolControlModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    addProperty(new BooleanProperty(PROP_TOGGLE_BUTTON, "Toggle Button", WidgetPropertyCategory.Behavior, DEFAULT_TOGGLE_BUTTON));
    addProperty(new ComboProperty(PROP_CONFIRM_DIALOG, "Show Confirm Dialog", WidgetPropertyCategory.Behavior, ShowConfirmDialog.stringValues(), 0));
    addProperty(new StringProperty(PROP_PASSWORD, "Password", WidgetPropertyCategory.Behavior, ""));
    addProperty(new StringProperty(PROP_CONFIRM_TIP, "Confirm Message", WidgetPropertyCategory.Behavior, DEFAULT_CONFIRM_TIP));
    addProperty(new IntegerProperty(PROP_PUSH_ACTION_INDEX, "Push Action Index", WidgetPropertyCategory.Behavior, 0, 0, Integer.MAX_VALUE));
    addProperty(new IntegerProperty(PROP_RELEASED_ACTION_INDEX, "Release Action Index", WidgetPropertyCategory.Behavior, 0, 0, Integer.MAX_VALUE));
}
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)

Example 7 with IntegerProperty

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

the class AbstractScaledWidgetModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new BooleanProperty(PROP_TRANSPARENT, "Transparent Background", WidgetPropertyCategory.Display, true));
    addProperty(new DoubleProperty(PROP_MIN, "Minimum", WidgetPropertyCategory.Behavior, DEFAULT_MIN));
    addProperty(new DoubleProperty(PROP_MAX, "Maximum", WidgetPropertyCategory.Behavior, DEFAULT_MAX));
    addProperty(new IntegerProperty(PROP_MAJOR_TICK_STEP_HINT, "Major Tick Step Hint", WidgetPropertyCategory.Display, DEFAULT_MAJOR_TICK_STEP_HINT, 1, 1000));
    addProperty(new BooleanProperty(PROP_SHOW_MINOR_TICKS, "Show Minor Ticks", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_SHOW_SCALE, "Show Scale", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_LOG_SCALE, "Log Scale", WidgetPropertyCategory.Display, false));
    addProperty(new FontProperty(PROP_SCALE_FONT, "Scale Font", WidgetPropertyCategory.Display, MediaService.DEFAULT_FONT));
    addProperty(new StringProperty(PROP_SCALE_FORMAT, "Scale Format", WidgetPropertyCategory.Display, // $NON-NLS-1$
    ""));
    addProperty(new StringProperty(PROP_VALUE_LABEL_FORMAT, "Value Label Format", WidgetPropertyCategory.Display, // $NON-NLS-1$
    ""));
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) FontProperty(org.csstudio.opibuilder.properties.FontProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) DoubleProperty(org.csstudio.opibuilder.properties.DoubleProperty)

Example 8 with IntegerProperty

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

the class ArcModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    removeProperty(PROP_FILL_LEVEL);
    removeProperty(PROP_HORIZONTAL_FILL);
    removeProperty(PROP_TRANSPARENT);
    removeProperty(PROP_LINE_COLOR);
    addProperty(new BooleanProperty(PROP_FILL, "Fill", WidgetPropertyCategory.Display, false));
    addProperty(new IntegerProperty(PROP_START_ANGLE, "Start Angle", WidgetPropertyCategory.Display, 0));
    addProperty(new IntegerProperty(PROP_TOTAL_ANGLE, "Total Angle", WidgetPropertyCategory.Display, 90));
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty)

Example 9 with IntegerProperty

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

the class ArrayModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new IntegerProperty(PROP_ARRAY_LENGTH, "Array Length", WidgetPropertyCategory.Behavior, 10, 0, Integer.MAX_VALUE));
    addProperty(new IntegerProperty(PROP_SPINNER_WIDTH, "Spinner Width", WidgetPropertyCategory.Display, 40, 0, 1000));
    addProperty(new BooleanProperty(PROP_HORIZONTAL, "Horizontal", WidgetPropertyCategory.Display, false));
    addProperty(new BooleanProperty(PROP_SHOW_SPINNER, "Show Spinner", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_SHOW_SCROLLBAR, "Show Scrollbar", WidgetPropertyCategory.Display, true));
    addProperty(new IntegerProperty(PROP_VISIBLE_ELEMENTS_COUNT, "Visible Elements Count", WidgetPropertyCategory.Display, 1, 0, 1000));
    addProperty(new ComboProperty(PROP_DATA_TYPE, "Data Type", WidgetPropertyCategory.Behavior, ArrayDataType.stringValues(), 0));
    setPropertyVisibleAndSavable(PROP_VISIBLE_ELEMENTS_COUNT, false, true);
    getProperty(PROP_VISIBLE_ELEMENTS_COUNT).addPropertyChangeListener(new PropertyChangeListener() {

        @Override
        public void propertyChange(PropertyChangeEvent evt) {
            if (getChildren().size() < 1)
                return;
            AbstractWidgetModel child = getChildren().get(0);
            removeAllChildren();
            addChild(child);
        }
    });
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) PropertyChangeEvent(java.beans.PropertyChangeEvent) AbstractWidgetModel(org.csstudio.opibuilder.model.AbstractWidgetModel) PropertyChangeListener(java.beans.PropertyChangeListener) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty)

Example 10 with IntegerProperty

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

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