|
Drag[en]gine Script Module DragonScript 1.35
|
Editor for a combo box. More...
Public Member Functions | |
| void | addActionListener (ActionListener listener) |
| Add action listener. | |
| Object | getEditorValue () |
| Get editor value. | |
| Widget | getWidget () |
| Get widget to use for editing. | |
| void | removeActionListener (ActionListener listener) |
| Remove action listener. | |
| void | setEditorValue (Object object) |
| Set editor value to object or null to clear. | |
| void | startEditing () |
| Start editing. | |
Editor for a combo box.
| void Dragengine.Gui.ComboBoxEditor.addActionListener | ( | ActionListener | listener | ) |
Add action listener.
Action listener is called whenever the edited object changes.
Implemented in Dragengine.Gui.DefaultComboBoxEditor.
References removeActionListener().
Referenced by setEditorValue().
| Object Dragengine.Gui.ComboBoxEditor.getEditorValue | ( | ) |
Get editor value.
The returned object can be the one previously set by setEditorValue() if unchanged or a new object if changed.
Implemented in Dragengine.Gui.DefaultComboBoxEditor.
References setEditorValue().
Referenced by getWidget().
| Widget Dragengine.Gui.ComboBoxEditor.getWidget | ( | ) |
Get widget to use for editing.
Implemented in Dragengine.Gui.DefaultComboBoxEditor.
References getEditorValue(), and getWidget().
Referenced by getWidget().
| void Dragengine.Gui.ComboBoxEditor.removeActionListener | ( | ActionListener | listener | ) |
Remove action listener.
Implemented in Dragengine.Gui.DefaultComboBoxEditor.
References startEditing().
Referenced by addActionListener().
| void Dragengine.Gui.ComboBoxEditor.setEditorValue | ( | Object | object | ) |
Set editor value to object or null to clear.
object is garanteed to not be modified by the editor.
Implemented in Dragengine.Gui.DefaultComboBoxEditor.
References addActionListener().
Referenced by getEditorValue().
| void Dragengine.Gui.ComboBoxEditor.startEditing | ( | ) |
Start editing.
Typically this selects the entire text or otherwise prepare editor for directly manipulating the set value. There is no stop editing call since the widget is hidden in this case.
Implemented in Dragengine.Gui.DefaultComboBoxEditor.
Referenced by removeActionListener().