Drag[en]gine Script Module DragonScript  1.23
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. More...
 
Object getEditorValue ()
 Get editor value. More...
 
Widget getWidget ()
 Get widget to use for editing. More...
 
void removeActionListener (ActionListener listener)
 Remove action listener. More...
 
void setEditorValue (Object object)
 Set editor value to object or null to clear. More...
 
void startEditing ()
 Start editing. More...
 

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.

◆ 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.

◆ getWidget()

Widget Dragengine.Gui.ComboBoxEditor.getWidget ( )

Get widget to use for editing.

Implemented in Dragengine.Gui.DefaultComboBoxEditor.

◆ removeActionListener()

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

Remove action listener.

Implemented in Dragengine.Gui.DefaultComboBoxEditor.

◆ 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.

◆ 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.


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