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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe message which will be shown on confirm dialog.static final StringLoad limit from PV.static final StringLoad limit from PV.static final StringLoad limit from PV.static final StringLoad limit from PV.static final StringThe maximum input value allowed.static final StringThe minimum input value allowed.static final StringAllow multi-line input.static final Stringstatic final Stringstatic final Stringstatic final StringLoad limit from PV.static final Stringstatic final Stringstatic final Stringstatic final StringFields 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_UNITSFields 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, pvModelFields 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.<T> TgetAdapter(Class<T> adapter) getStyle()org.osgi.framework.VersionbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidprocessVersionDifference(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, setRotationAngleMethods inherited from class org.csstudio.opibuilder.widgets.model.LabelModel
getHorizontalAlignment, getText, getVerticalAlignment, isAutoSize, isShowScrollbar, isTransparent, isWrapWords, setFont, setText, setTextMethods inherited from class org.csstudio.opibuilder.model.AbstractPVWidgetModel
configureBaseProperties, getDelegate, getPVName, getTooltip, isAlarmPulsing, isBackColorAlarmSensitve, isBorderAlarmSensitve, isForeColorAlarmSensitveMethods 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:
getTypeIDin classTextUpdateModel- Returns:
- the unique typeID of the model.
-
configureProperties
protected void configureProperties()Description copied from class:AbstractWidgetModelConfigure the properties of the widget. Subclass should add new properties in this method.- Overrides:
configurePropertiesin classTextUpdateModel
-
getVersion
public org.osgi.framework.Version getVersion()- Overrides:
getVersionin classAbstractWidgetModel- Returns:
- version of this widget model.
-
processVersionDifference
public void processVersionDifference(org.osgi.framework.Version boyVersionOnFile) Description copied from class:AbstractWidgetModelMake necessary adjustment for widget compatibility between different versions.- Overrides:
processVersionDifferencein 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:
getAdapterin interfaceIAdaptable- Overrides:
getAdapterin classAbstractWidgetModel
-