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 void
addVerifyListeners()
Add the verify listenersjava.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.propertytable.editor.PTBaseTextEditor
render
-
-
-
-
Method Detail
-
addVerifyListeners
public void addVerifyListeners()
Description copied from class:PTBaseTextEditor
Add the verify listeners- Specified by:
addVerifyListeners
in 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:
convertValue
in 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:
getStyle
in classPTBaseTextEditor
- Returns:
- the style (SWT.NONE or SWT.PASSWORD)
- See Also:
PTBaseTextEditor.getStyle()
-
-