Class TextInputModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractPVWidgetModel
org.csstudio.opibuilder.widgets.model.LabelModel
org.csstudio.opibuilder.widgets.model.TextUpdateModel
org.csstudio.opibuilder.widgets.model.TextInputModel
- All Implemented Interfaces:
IPVWidgetModel
,ITextModel
,IAdaptable
,IPropertySource
- Direct Known Subclasses:
NativeTextModel
The model for text input.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The message which will be shown on confirm dialog.static final String
Load limit from PV.static final String
Load limit from PV.static final String
Load limit from PV.static final String
Load limit from PV.static final String
The maximum input value allowed.static final String
The minimum input value allowed.static final String
Allow multi-line input.static final String
static final String
static final String
static final String
Load limit from PV.static final String
static final String
static final String
static final String
Fields inherited from class org.csstudio.opibuilder.widgets.model.TextUpdateModel
PROP_FORMAT_TYPE, PROP_PRECISION, PROP_PRECISION_FROM_DB, PROP_ROTATION, PROP_SHOW_LOHI, PROP_SHOW_UNITS
Fields inherited from class org.csstudio.opibuilder.widgets.model.LabelModel
PROP_ALIGN_H, PROP_ALIGN_V, PROP_AUTOSIZE, PROP_SHOW_SCROLLBAR, PROP_TEXT, PROP_TRANSPARENT, PROP_WRAP_WORDS, pvModel
Fields 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, VERSION
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Configure the properties of the widget.<T> T
getAdapter
(Class<T> adapter) getStyle()
org.osgi.framework.Version
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
processVersionDifference
(org.osgi.framework.Version boyVersionOnFile) Make necessary adjustment for widget compatibility between different versions.Methods inherited from class org.csstudio.opibuilder.widgets.model.TextUpdateModel
getFormat, getPrecision, getRotationAngle, isPrecisionFromDB, isShowLoHi, isShowUnits, rotate90, rotate90, setRotationAngle
Methods inherited from class org.csstudio.opibuilder.widgets.model.LabelModel
getHorizontalAlignment, getText, getVerticalAlignment, isAutoSize, isShowScrollbar, isTransparent, isWrapWords, setFont, setText, setText
Methods inherited from class org.csstudio.opibuilder.model.AbstractPVWidgetModel
configureBaseProperties, getDelegate, getPVName, getTooltip, isAlarmPulsing, isBackColorAlarmSensitve, isBorderAlarmSensitve, isForeColorAlarmSensitve
Methods inherited from class org.csstudio.opibuilder.model.AbstractWidgetModel
addConnection, addProperty, addProperty, addPVProperty, doScale, flipHorizontally, flipHorizontally, flipVertically, flipVertically, generateNewWUID, getActionsInput, 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, getVersionOnFile, getWidgetType, getWidth, getWUID, getX, getY, isEnabled, isPropertySet, isVisible, removeProperty, removePVProperty, resetPropertyValue, 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_MIN
The minimum input value allowed.- See Also:
-
PROP_MAX
The maximum input value allowed.- See Also:
-
PROP_LIMITS_FROM_PV
Load limit from PV.- See Also:
-
PROP_DATETIME_FORMAT
Load limit from PV.- See Also:
-
PROP_SELECTOR_TYPE
Load limit from PV.- See Also:
-
PROP_FILE_SOURCE
Load limit from PV.- See Also:
-
PROP_FILE_RETURN_PART
Load limit from PV.- See Also:
-
PROP_MULTILINE_INPUT
Allow multi-line input.- See Also:
-
PROP_CONFIRM_MESSAGE
The message which will be shown on confirm dialog.- See Also:
-
PROP_SHOW_NATIVE_BORDER
- See Also:
-
PROP_PASSWORD_INPUT
- See Also:
-
PROP_READ_ONLY
- See Also:
-
PROP_SHOW_H_SCROLL
- See Also:
-
PROP_SHOW_V_SCROLL
- See Also:
-
PROP_NEXT_FOCUS
- See Also:
-
PROP_STYLE
- See Also:
-
-
Constructor Details
-
TextInputModel
public TextInputModel()
-
-
Method Details
-
getTypeID
- Overrides:
getTypeID
in classTextUpdateModel
- Returns:
- the unique typeID of the model.
-
configureProperties
protected void configureProperties()Description copied from class:AbstractWidgetModel
Configure the properties of the widget. Subclass should add new properties in this method.- Overrides:
configureProperties
in classTextUpdateModel
-
getVersion
public org.osgi.framework.Version getVersion()- Overrides:
getVersion
in classAbstractWidgetModel
- Returns:
- version of this widget model.
-
processVersionDifference
public void processVersionDifference(org.osgi.framework.Version boyVersionOnFile) Description copied from class:AbstractWidgetModel
Make necessary adjustment for widget compatibility between different versions.- Overrides:
processVersionDifference
in classAbstractPVWidgetModel
-
getMinimum
- Returns:
- the minimum value
-
getMaximum
- Returns:
- the maximum value
-
isLimitsFromPV
public boolean isLimitsFromPV()- Returns:
- true if limits will be load from DB, false otherwise
-
getDateTimeFormat
-
getSelectorType
-
getFileSource
-
getFileReturnPart
-
isMultilineInput
public boolean isMultilineInput() -
getConfirmMessage
-
isShowNativeBorder
public boolean isShowNativeBorder() -
isReadOnly
public boolean isReadOnly() -
isPasswordInput
public boolean isPasswordInput() -
isShowHScroll
public boolean isShowHScroll() -
isShowVScroll
public boolean isShowVScroll() -
getFocusTraverse
-
getStyle
-
getAdapter
- Specified by:
getAdapter
in interfaceIAdaptable
- Overrides:
getAdapter
in classAbstractWidgetModel
-