Class PWFloatText
- 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.PWFloatText
-
public class PWFloatText extends PWText
Instances of this class are text box to type floats
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWWidget
enabler, numberOfColumns
-
-
Constructor Summary
Constructors Constructor Description PWFloatText(java.lang.String label, java.lang.String propertyKey)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVerifyListeners()
Add the verify listenersvoid
check()
Check if the property can be binded to the widgetjava.lang.Object
convertValue()
int
getStyle()
private boolean
verifyEntry(java.lang.String entry, int keyCode)
Check if an entry is a float-
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
-
-
-
-
Method Detail
-
addVerifyListeners
public void addVerifyListeners()
Description copied from class:PWText
Add the verify listeners- Specified by:
addVerifyListeners
in classPWText
- See Also:
PWText.addVerifyListeners()
-
verifyEntry
private boolean verifyEntry(java.lang.String entry, int keyCode)
Check if an entry is a float- Parameters:
entry
- text typed by the userkeyCode
- key code- Returns:
- true if the user typed a float value, false otherwise
-
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.Object 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()
-
-