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;
}
}
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, ""));
}
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));
}
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));
}
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, ""));
}
Aggregations