Class PWText
java.lang.Object
org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWWidget
org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWText
- Direct Known Subclasses:
PWFloatText
,PWIntegerText
,PWPasswordText
,PWStringText
,PWURLText
public abstract class PWText extends PWWidget
This is the abstract class for all text widgets (except textarea)
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.swt.widgets.Text
text
Fields inherited from class org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWWidget
enabler, numberOfColumns
-
Constructor Summary
Constructors Constructor Description PWText(java.lang.String label, java.lang.String propertyKey)
Constructor -
Method Summary
Modifier and Type Method Description abstract void
addVerifyListeners()
Add the verify listenersorg.eclipse.swt.widgets.Control
build(org.eclipse.swt.widgets.Composite parent)
Build the widgetabstract java.lang.Object
convertValue()
abstract int
getStyle()
Methods inherited from class org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWWidget
addControl, buildLabel, check, checkAndBuild, enableOrDisable, getAlignment, getControls, getHeight, getIndent, getLabel, getNumberOfColumns, getPropertyKey, getWidth, isGrabExcessSpace, isSingleWidget, setAlignment, setEnabler, setGrabExcessSpace, setHeight, setIndent, setWidth
-
Field Details
-
text
protected org.eclipse.swt.widgets.Text text
-
-
Constructor Details
-
PWText
public PWText(java.lang.String label, java.lang.String propertyKey)Constructor- Parameters:
label
- associated labelpropertyKey
- associated property key
-
-
Method Details
-
build
public org.eclipse.swt.widgets.Control build(org.eclipse.swt.widgets.Composite parent)Description copied from class:PWWidget
Build the widget -
addVerifyListeners
public abstract void addVerifyListeners()Add the verify listeners -
convertValue
public abstract java.lang.Object convertValue()- Returns:
- the value of the data typed by the user in the correct format
-
getStyle
public abstract int getStyle()- Returns:
- the style (SWT.NONE or SWT.PASSWORD)
-