Class PWIntegerText
java.lang.Object
org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWWidget
org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWText
org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWIntegerText
public class PWIntegerText extends PWText
Instances of this class are text box to type Integers
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWWidget
enabler, numberOfColumns
-
Constructor Summary
Constructors Constructor Description PWIntegerText(java.lang.String label, java.lang.String propertyKey)
Constructor -
Method Summary
Modifier and Type Method Description void
addVerifyListeners()
Add the verify listenersvoid
check()
Check if the property can be binded to the widgetjava.lang.Integer
convertValue()
int
getStyle()
Methods inherited from class org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWWidget
addControl, buildLabel, checkAndBuild, enableOrDisable, getAlignment, getControls, getHeight, getIndent, getLabel, getNumberOfColumns, getPropertyKey, getWidth, isGrabExcessSpace, isSingleWidget, setAlignment, setEnabler, setGrabExcessSpace, setHeight, setIndent, setWidth
-
Constructor Details
-
PWIntegerText
public PWIntegerText(java.lang.String label, java.lang.String propertyKey)Constructor- Parameters:
label
- associated labelpropertyKey
- associated key
-
-
Method Details
-
addVerifyListeners
public void addVerifyListeners()Description copied from class:PWText
Add the verify listeners- Specified by:
addVerifyListeners
in classPWText
- See Also:
PWText.addVerifyListeners()
-
check
public void check()Description copied from class:PWWidget
Check if the property can be binded to the widget- Specified by:
check
in classPWWidget
- See Also:
PWWidget.check()
-
convertValue
public java.lang.Integer convertValue()- Specified by:
convertValue
in classPWText
- Returns:
- the value of the data typed by the user in the correct format
- See Also:
PWText.convertValue()
-
getStyle
public int getStyle()- Specified by:
getStyle
in classPWText
- Returns:
- the style (SWT.NONE or SWT.PASSWORD)
- See Also:
PWText.getStyle()
-