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 voidaddVerifyListeners()Add the verify listenersvoidcheck()Check if the property can be binded to the widgetjava.lang.ObjectconvertValue()intgetStyle()private booleanverifyEntry(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:PWTextAdd the verify listeners- Specified by:
addVerifyListenersin 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:PWWidgetCheck if the property can be binded to the widget- Specified by:
checkin classPWWidget- See Also:
PWWidget.check()
-
convertValue
public java.lang.Object convertValue()
- Specified by:
convertValuein 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:
getStylein classPWText- Returns:
- the style (SWT.NONE or SWT.PASSWORD)
- See Also:
PWText.getStyle()
-
-