Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Gui.ComboBoxEditor Interface Reference

Editor for a combo box. More...

Inheritance diagram for Dragengine.Gui.ComboBoxEditor:
Dragengine.Gui.DefaultComboBoxEditor

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.

Detailed Description

Editor for a combo box.

Member Function Documentation

◆ addActionListener()

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().

◆ getEditorValue()

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().

◆ getWidget()

Widget Dragengine.Gui.ComboBoxEditor.getWidget ( )

Get widget to use for editing.

Implemented in Dragengine.Gui.DefaultComboBoxEditor.

References getEditorValue(), and getWidget().

Referenced by getWidget().

◆ removeActionListener()

void Dragengine.Gui.ComboBoxEditor.removeActionListener ( ActionListener listener)

Remove action listener.

Implemented in Dragengine.Gui.DefaultComboBoxEditor.

References startEditing().

Referenced by addActionListener().

◆ setEditorValue()

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().

◆ startEditing()

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().


The documentation for this interface was generated from the following file: