Class PTComboEditor
java.lang.Object
org.eclipse.nebula.widgets.opal.propertytable.editor.PTEditor
org.eclipse.nebula.widgets.opal.propertytable.editor.PTComboEditor
public class PTComboEditor extends PTEditor
This editor is for combo values. By default, the combo is editable
-
Constructor Summary
Constructors Constructor Description PTComboEditor(boolean readOnly, java.lang.Object... data)
ConstructorPTComboEditor(java.lang.Object... data)
Constructor -
Method Summary
Modifier and Type Method Description org.eclipse.swt.custom.ControlEditor
render(PTWidget widget, org.eclipse.swt.widgets.Item item, PTProperty property)
Renders an editor
-
Constructor Details
-
PTComboEditor
public PTComboEditor(boolean readOnly, java.lang.Object... data)Constructor- Parameters:
readOnly
- if true, the combo is read-onlydata
- data displayed in the combo
-
PTComboEditor
public PTComboEditor(java.lang.Object... data)Constructor- Parameters:
data
- data displayed in the combo.
-
-
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)
-