Class AbstractBoolControlModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractPVWidgetModel
org.csstudio.opibuilder.widgets.model.AbstractBoolWidgetModel
org.csstudio.opibuilder.widgets.model.AbstractBoolControlModel
- All Implemented Interfaces:
IPVWidgetModel,IAdaptable,IPropertySource
- Direct Known Subclasses:
BoolButtonModel,BoolSwitchModel,ImageBoolButtonModel
Abstract model for boolean controls.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringThe ID of this widget model.static final StringIf a confirm dialog should be shown before performing action.static final StringThe message which will be shown on confirm dialog.static final StringThe password needed to perform actionstatic final StringThe action which will be executed when widget is pushed.static final StringThe action which will be executed when widget is released.static final StringIf the button should be a toggle button.Fields inherited from class org.csstudio.opibuilder.widgets.model.AbstractBoolWidgetModel
PROP_BIT, PROP_BOOL_LABEL_POS, PROP_DATA_TYPE, PROP_OFF_COLOR, PROP_OFF_LABEL, PROP_OFF_STATE, PROP_ON_COLOR, PROP_ON_LABEL, PROP_ON_STATE, PROP_SHOW_BOOL_LABELFields inherited from class org.csstudio.opibuilder.model.AbstractWidgetModel
PROP_ACTIONS, PROP_BORDER_COLOR, PROP_BORDER_STYLE, PROP_BORDER_WIDTH, PROP_COLOR_BACKGROUND, PROP_COLOR_FOREGROUND, PROP_ENABLED, PROP_FONT, PROP_HEIGHT, PROP_NAME, PROP_RULES, PROP_SCALE_OPTIONS, PROP_SCRIPTS, PROP_SRC_CONNECTIONS, PROP_TGT_CONNECTIONS, PROP_TOOLTIP, PROP_VISIBLE, PROP_WIDGET_TYPE, PROP_WIDGET_UID, PROP_WIDTH, PROP_XPOS, PROP_YPOS, VERSIONFields inherited from interface org.csstudio.opibuilder.model.IPVWidgetModel
PROP_ALARM_PULSING, PROP_BACKCOLOR_ALARMSENSITIVE, PROP_BORDER_ALARMSENSITIVE, PROP_FORECOLOR_ALARMSENSITIVE, PROP_PVNAME, PROP_PVVALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConfigure the properties of the widget.intReturn the index of the selected WidgetAction from the ActionData.intReturn the index of the selected WidgetAction from the ActionData.booleanMethods inherited from class org.csstudio.opibuilder.widgets.model.AbstractBoolWidgetModel
getBit, getBoolLabelPosition, getDataType, getOffColor, getOffLabel, getOffState, getOnColor, getOnLabel, getOnState, isShowBoolLabelMethods inherited from class org.csstudio.opibuilder.model.AbstractPVWidgetModel
configureBaseProperties, getDelegate, getPVName, getTooltip, isAlarmPulsing, isBackColorAlarmSensitve, isBorderAlarmSensitve, isForeColorAlarmSensitve, processVersionDifferenceMethods inherited from class org.csstudio.opibuilder.model.AbstractWidgetModel
addConnection, addProperty, addProperty, addPVProperty, doScale, flipHorizontally, flipHorizontally, flipVertically, flipVertically, generateNewWUID, getActionsInput, getAdapter, getAllPropertyIDs, getBackgroundColor, getBorderColor, getBorderStyle, getBorderWidth, getBounds, getCastedPropertyValue, getEditableValue, getExecutionMode, getFont, getForegroundColor, getHeight, getIndex, getLocation, getName, getNestedDepth, getOriginLocation, getOriginSize, getParent, getProperty, getPropertyDescriptors, getPropertyValue, getPVMap, getRawPropertyValue, getRawTooltip, getRGBFromColorProperty, getRootDisplayModel, getRootDisplayModel, getRulesInput, getRuntimePropertyList, getScaledSize, getScaleOptions, getScriptsInput, getSize, getSourceConnections, getSWTColorFromColorProperty, getTargetConnections, getType, getVersion, getVersionOnFile, getWidgetType, getWidth, getWUID, getX, getY, isEnabled, isPropertySet, isVisible, removeProperty, removePVProperty, resetPropertyValue, rotate90, rotate90, scale, scaleConnections, setBackgroundColor, setBorderColor, setBorderStyle, setBorderWidth, setBounds, setBounds, setEnabled, setExecutionMode, setForegroundColor, setHeight, setLocation, setLocation, setName, setParent, setPropertyDescription, setPropertyValue, setPropertyValue, setPropertyVisible, setPropertyVisibleAndSavable, setScaleOptions, setSize, setSize, setTooltip, setVersionOnFile, setWidth, setX, setY
-
Field Details
-
PROP_TOGGLE_BUTTON
If the button should be a toggle button.- See Also:
-
PROP_CONFIRM_DIALOG
If a confirm dialog should be shown before performing action.- See Also:
-
PROP_PASSWORD
The password needed to perform action- See Also:
-
PROP_CONFIRM_TIP
The message which will be shown on confirm dialog.- See Also:
-
DEFAULT_CONFIRM_TIP
- See Also:
-
PROP_PUSH_ACTION_INDEX
The action which will be executed when widget is pushed. It is the index the actions in actions property.- See Also:
-
PROP_RELEASED_ACTION_INDEX
The action which will be executed when widget is released. It is the index the action in actions property.- See Also:
-
ID
The ID of this widget model.- See Also:
-
-
Constructor Details
-
AbstractBoolControlModel
public AbstractBoolControlModel()
-
-
Method Details
-
configureProperties
protected void configureProperties()Description copied from class:AbstractWidgetModelConfigure the properties of the widget. Subclass should add new properties in this method.- Overrides:
configurePropertiesin classAbstractBoolWidgetModel
-
getTypeID
- Specified by:
getTypeIDin classAbstractWidgetModel- Returns:
- the unique typeID of the model.
-
isToggleButton
public boolean isToggleButton()- Returns:
- true if the button is toggle.
-
getShowConfirmDialog
- Returns:
- true if the confirm dialog should be shown, false otherwise
-
getPassword
- Returns:
- the password
-
getConfirmTip
- Returns:
- the confirm tip
-
getPushActionIndex
public int getPushActionIndex()Return the index of the selected WidgetAction from the ActionData. The Action is running when the button is released.- Returns:
- The index
-
getReleasedActionIndex
public int getReleasedActionIndex()Return the index of the selected WidgetAction from the ActionData. The Action is running when the button is released.- Returns:
- The index
-