use of org.csstudio.opibuilder.properties.BooleanProperty 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.BooleanProperty in project yamcs-studio by yamcs.
the class TankModel 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_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
addProperty(new ColorProperty(PROP_FILLBACKGROUND_COLOR, "Color Fillbackground", WidgetPropertyCategory.Display, DEFAULT_FILLBACKGROUND_COLOR));
setPropertyValue(PROP_LO_COLOR, new RGB(255, 128, 0));
setPropertyValue(PROP_HI_COLOR, new RGB(255, 128, 0));
setPropertyVisible(PROP_VALUE_LABEL_FORMAT, false);
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class WidgetScaleData method configureProperties.
@Override
protected void configureProperties() {
addProperty(new BooleanProperty(PROP_WIDTH_SCALABLE, "Width Scalable", null, true));
addProperty(new BooleanProperty(PROP_HEIGHT_SCALABLE, "Height Scalable", null, true));
addProperty(new BooleanProperty(PROP_KEEP_WH_RATIO, "Keep Width/Height Ratio", null, false));
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class DisplayScaleData method configureProperties.
@Override
protected void configureProperties() {
addProperty(new BooleanProperty(PROP_AUTO_SCALE_WIDGETS, "Auto Scale Widgets", null, false));
addProperty(new IntegerProperty(PROP_MIN_WIDTH, "Minimum Width", null, -1));
addProperty(new IntegerProperty(PROP_MIN_HEIGHT, "Minimum Height", null, -1));
}
use of org.csstudio.opibuilder.properties.BooleanProperty 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));
}
Aggregations