Class PTBaseTextEditor
java.lang.Object
org.eclipse.nebula.widgets.opal.propertytable.editor.PTEditor
org.eclipse.nebula.widgets.opal.propertytable.editor.PTBaseTextEditor
- Direct Known Subclasses:
PTFloatEditor
,PTIntegerEditor
,PTPasswordEditor
,PTStringEditor
,PTURLEditor
public abstract class PTBaseTextEditor extends PTEditor
This abstract class represents all text-based editors (float editor, integer
editor, password editor, String editor, URL editor)
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.swt.widgets.Text
text
-
Constructor Summary
Constructors Constructor Description PTBaseTextEditor()
-
Method Summary
Modifier and Type Method Description abstract void
addVerifyListeners()
Add the verify listenersabstract java.lang.Object
convertValue()
abstract int
getStyle()
org.eclipse.swt.custom.ControlEditor
render(PTWidget widget, org.eclipse.swt.widgets.Item item, PTProperty property)
Renders an editor
-
Field Details
-
text
protected org.eclipse.swt.widgets.Text text
-
-
Constructor Details
-
PTBaseTextEditor
public PTBaseTextEditor()
-
-
Method Details
-
render
public org.eclipse.swt.custom.ControlEditor render(PTWidget widget, org.eclipse.swt.widgets.Item item, PTProperty property)Description copied from class:PTEditor
Renders an editor- Specified by:
render
in classPTEditor
- Parameters:
widget
- the parent PTWidget (a table or a tree table)item
- the item on which the editor is displayedproperty
- the property associated to the editor- Returns:
- a control editor
- See Also:
PTEditor.render(org.eclipse.nebula.widgets.opal.propertytable.PTWidget, org.eclipse.swt.widgets.Item, org.eclipse.nebula.widgets.opal.propertytable.PTProperty)
-
addVerifyListeners
public abstract void addVerifyListeners()Add the verify listeners -
convertValue
public abstract java.lang.Object convertValue()- Returns:
- the value of the data typed by the user in the correct format
-
getStyle
public abstract int getStyle()- Returns:
- the style (SWT.NONE or SWT.PASSWORD)
-