Class org.aswing.DefaultComboBoxEditor

Implemented Interfaces

ComboBoxEditor

Description

Default to use a JTextField to be the editor. Just works with string values well.

Field Index

ON_ACT

Inherited from EventDispatcher

Method Index

new DefaultComboBoxEditor()
addActionListener(), getEditorComponent(), getValue(), isEditable(), selectAll(), setEditable(), setValue()

Inherited from EventDispatcher

Constructor Detail

DefaultComboBoxEditor

public function DefaultComboBoxEditor()

Field Detail

ON_ACT

static public ON_ACT:String
When the editing entered.
onActionPerformed Event{source:DefaultComboBoxEditor}

Method Detail

addActionListener

public function addActionListener(func:Function, obj:Object):Object

Description copied from ComboBoxEditor

Add a listener to listen the editor event when the edited item changes.

addChangeListener(func:Function)
addChangeListener(func:Function, obj:Object)

Specified By

addActionListener() in org.aswing.ComboBoxEditor

setEditable

public function setEditable(b:Boolean):Void

Description copied from ComboBoxEditor

Sets whether the editor is editable now.

Specified By

setEditable() in org.aswing.ComboBoxEditor

isEditable

public function isEditable():Boolean

Description copied from ComboBoxEditor

Returns whether the editor is editable now.

Specified By

isEditable() in org.aswing.ComboBoxEditor

getEditorComponent

public function getEditorComponent():Component

Description copied from ComboBoxEditor

Return the component that should be added to the tree hierarchy for this editor.

The editor component should can accept normal component event listeners such as Component.ON_RELEASE, Component.ON_PRESS ...

Specified By

getEditorComponent() in org.aswing.ComboBoxEditor

setValue

public function setValue(v:Object):Void

Description copied from ComboBoxEditor

Set the item that should be edited. Cancel any editing if necessary.

Specified By

setValue() in org.aswing.ComboBoxEditor

getValue

public function getValue():Object

Description copied from ComboBoxEditor

Return the edited item.

Specified By

getValue() in org.aswing.ComboBoxEditor

selectAll

public function selectAll():Void

Description copied from ComboBoxEditor

Ask the editor to start editing and to select everything in the editor.

Specified By

selectAll() in org.aswing.ComboBoxEditor