Class PTFloatEditor
- java.lang.Object
-
- org.eclipse.nebula.widgets.opal.propertytable.editor.PTEditor
-
- org.eclipse.nebula.widgets.opal.propertytable.editor.PTBaseTextEditor
-
- org.eclipse.nebula.widgets.opal.propertytable.editor.PTFloatEditor
-
public class PTFloatEditor extends PTBaseTextEditor
This editor is used to edit float values
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.opal.propertytable.editor.PTBaseTextEditor
text
-
-
Constructor Summary
Constructors Constructor Description PTFloatEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVerifyListeners()Add the verify listenersjava.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.propertytable.editor.PTBaseTextEditor
render
-
-
-
-
Method Detail
-
addVerifyListeners
public void addVerifyListeners()
Description copied from class:PTBaseTextEditorAdd the verify listeners- Specified by:
addVerifyListenersin classPTBaseTextEditor- See Also:
PTBaseTextEditor.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
-
convertValue
public java.lang.Object convertValue()
- Specified by:
convertValuein classPTBaseTextEditor- Returns:
- the value of the data typed by the user in the correct format
- See Also:
PTBaseTextEditor.convertValue()
-
getStyle
public int getStyle()
- Specified by:
getStylein classPTBaseTextEditor- Returns:
- the style (SWT.NONE or SWT.PASSWORD)
- See Also:
PTBaseTextEditor.getStyle()
-
-