use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class ImageBoolIndicatorModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new FilePathProperty(PROP_ON_IMAGE, "On Image", WidgetPropertyCategory.Image, "", FILE_EXTENSIONS));
addProperty(new FilePathProperty(PROP_OFF_IMAGE, "Off Image", WidgetPropertyCategory.Image, "", FILE_EXTENSIONS));
addProperty(new BooleanProperty(PROP_STRETCH, "Stretch to Fit", WidgetPropertyCategory.Image, false));
addProperty(new BooleanProperty(PROP_AUTOSIZE, "Auto Size", WidgetPropertyCategory.Image, true));
addProperty(new BooleanProperty(PROP_NO_ANIMATION, "No Animation", WidgetPropertyCategory.Image, false));
addProperty(new BooleanProperty(PROP_ALIGN_TO_NEAREST_SECOND, "Animation aligned to the nearest second", WidgetPropertyCategory.Image, false));
setPropertyVisible(PROP_ON_COLOR, false);
setPropertyVisible(PROP_OFF_COLOR, false);
FigureTransparencyHelper.addProperty(this);
}
use of org.csstudio.opibuilder.properties.BooleanProperty 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()));
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class MeterModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new ColorProperty(PROP_NEEDLE_COLOR, "Needle Color", WidgetPropertyCategory.Display, DEFAULT_NEEDLE_COLOR));
addProperty(new BooleanProperty(PROP_RAMP_GRADIENT, "Ramp Gradient", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SHOW_VALUE_LABEL, "Show Value Label", WidgetPropertyCategory.Display, true));
setPropertyDescription(PROP_SHOW_MARKERS, "Show Ramp");
// Ramp cannot be transparent.
setPropertyValue(PROP_TRANSPARENT, false);
removeProperty(PROP_TRANSPARENT);
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class ComboModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new StringListProperty(PROP_ITEMS, "Items", WidgetPropertyCategory.Behavior, new ArrayList<String>()));
addProperty(new BooleanProperty(PROP_ITEMS_FROM_PV, "Items From PV", WidgetPropertyCategory.Behavior, false));
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class LabelModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new StringProperty(PROP_TEXT, "Text", WidgetPropertyCategory.Display, "Label", true));
addProperty(new BooleanProperty(PROP_TRANSPARENT, "Transparent", WidgetPropertyCategory.Display, !pvModel));
addProperty(new BooleanProperty(PROP_AUTOSIZE, "Auto Size", WidgetPropertyCategory.Display, false));
addProperty(new ComboProperty(PROP_ALIGN_H, "Horizontal Alignment", WidgetPropertyCategory.Display, H_ALIGN.stringValues(), 1));
addProperty(new ComboProperty(PROP_ALIGN_V, "Vertical Alignment", WidgetPropertyCategory.Display, V_ALIGN.stringValues(), 1));
addProperty(new BooleanProperty(PROP_WRAP_WORDS, "Wrap Words", WidgetPropertyCategory.Behavior, false));
addProperty(new BooleanProperty(PROP_SHOW_SCROLLBAR, "Show Scrollbar", WidgetPropertyCategory.Behavior, false));
if (!pvModel) {
setTooltip("");
setPropertyVisible(PROP_PVNAME, false);
setPropertyVisible(PROP_PVVALUE, false);
setPropertyVisible(PROP_BACKCOLOR_ALARMSENSITIVE, false);
setPropertyVisible(PROP_BORDER_ALARMSENSITIVE, false);
setPropertyVisible(PROP_FORECOLOR_ALARMSENSITIVE, false);
setPropertyVisible(PROP_ALARM_PULSING, false);
}
}
Aggregations