Search in sources :

Example 1 with StringProperty

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

the class TabModel method addTabProperty.

private void addTabProperty(TabProperty tabProperty, int tabIndex) {
    var propID = makeTabPropID(tabProperty.propIDPre, tabIndex);
    WidgetPropertyCategory category;
    category = new WidgetPropertyCategory() {

        @Override
        public String toString() {
            return NLS.bind("Tab {0}", tabIndex);
        }
    };
    switch(tabProperty) {
        case TITLE:
            addProperty(new StringProperty(propID, tabProperty.toString(), category, category.toString()));
            break;
        case FONT:
            addProperty(new FontProperty(propID, tabProperty.toString(), category, DEFAULT_TAB_FONT));
            break;
        case FORECOLOR:
            addProperty(new ColorProperty(propID, tabProperty.toString(), category, DEFAULT_TAB_FORECOLOR));
            break;
        case BACKCOLOR:
            addProperty(new ColorProperty(propID, tabProperty.toString(), category, DEFAULT_TAB_BACKCOLOR));
            break;
        case ICON_PATH:
            addProperty(new FilePathProperty(propID, tabProperty.toString(), category, null, FILE_EXTENSIONS));
            break;
        case ENABLED:
            addProperty(new BooleanProperty(propID, tabProperty.toString(), category, true));
            break;
        default:
            break;
    }
}
Also used : FontProperty(org.csstudio.opibuilder.properties.FontProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) WidgetPropertyCategory(org.csstudio.opibuilder.properties.WidgetPropertyCategory) FilePathProperty(org.csstudio.opibuilder.properties.FilePathProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 2 with StringProperty

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

the class WritePVAction method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new PVNameProperty(PROP_PVNAME, "PV Name", WidgetPropertyCategory.Basic, "$(pv_name)"));
    addProperty(new StringProperty(PROP_VALUE, "Value", WidgetPropertyCategory.Basic, ""));
    addProperty(new IntegerProperty(PROP_TIMEOUT, "Timeout (second)", WidgetPropertyCategory.Basic, 10, 1, 3600));
    addProperty(new StringProperty(PROP_CONFIRM_MESSAGE, "Confirm Message", WidgetPropertyCategory.Basic, ""));
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) PVNameProperty(org.csstudio.opibuilder.properties.PVNameProperty)

Example 3 with StringProperty

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

the class ExecuteCommandAction method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new StringProperty(PROP_COMMAND, "Command", WidgetPropertyCategory.Basic, ""));
    addProperty(new StringProperty(PROP_DIRECTORY, "Command Directory[path]", WidgetPropertyCategory.Basic, "$(user.home)"));
    addProperty(new IntegerProperty(PROP_WAIT_TIME, "Wait Time(s)", WidgetPropertyCategory.Basic, 10, 1, Integer.MAX_VALUE));
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty)

Example 4 with StringProperty

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

use of org.csstudio.opibuilder.properties.StringProperty 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, ""));
    addProperty(new StringProperty(PROP_VALUE_LABEL_FORMAT, "Value Label Format", WidgetPropertyCategory.Display, ""));
}
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)

Aggregations

StringProperty (org.csstudio.opibuilder.properties.StringProperty)22 BooleanProperty (org.csstudio.opibuilder.properties.BooleanProperty)17 IntegerProperty (org.csstudio.opibuilder.properties.IntegerProperty)12 ColorProperty (org.csstudio.opibuilder.properties.ColorProperty)8 ComboProperty (org.csstudio.opibuilder.properties.ComboProperty)8 FilePathProperty (org.csstudio.opibuilder.properties.FilePathProperty)5 FontProperty (org.csstudio.opibuilder.properties.FontProperty)4 ActionsProperty (org.csstudio.opibuilder.properties.ActionsProperty)3 DoubleProperty (org.csstudio.opibuilder.properties.DoubleProperty)3 PVNameProperty (org.csstudio.opibuilder.properties.PVNameProperty)3 PVValueProperty (org.csstudio.opibuilder.properties.PVValueProperty)3 WidgetPropertyCategory (org.csstudio.opibuilder.properties.WidgetPropertyCategory)3 NameDefinedCategory (org.csstudio.opibuilder.properties.NameDefinedCategory)2 IPV (org.csstudio.simplepv.IPV)2 RGB (org.eclipse.swt.graphics.RGB)2 PropertyChangeEvent (java.beans.PropertyChangeEvent)1 PropertyChangeListener (java.beans.PropertyChangeListener)1 UID (java.rmi.server.UID)1 WidgetScaleData (org.csstudio.opibuilder.datadefinition.WidgetScaleData)1 AbstractWidgetProperty (org.csstudio.opibuilder.properties.AbstractWidgetProperty)1