Packageorg.aswing
Interfacepublic interface ComboBoxEditor
ImplementorsDefaultComboBoxEditor

The editor component used for JComboBox components.



Public Methods
 MethodDefined by
  
addActionListener(listener:Function, priority:int = 0, useWeakReference:Boolean = false):void
Adds a listener to listen the editor event when the edited item changes.
ComboBoxEditor
  
Return the component that performance the editing asset.
ComboBoxEditor
  
Return the edited item.
ComboBoxEditor
  
isEditable():Boolean
Returns whether the editor is editable now.
ComboBoxEditor
  
removeActionListener(listener:Function):void
Removes a action listener.
ComboBoxEditor
  
selectAll():void
Ask the editor to start editing and to select everything in the editor.
ComboBoxEditor
  
setEditable(b:Boolean):void
Sets whether the editor is editable now.
ComboBoxEditor
  
setValue(value:*):void
Set the item that should be edited.
ComboBoxEditor
Method detail
addActionListener()method
public function addActionListener(listener:Function, priority:int = 0, useWeakReference:Boolean = false):void

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

Parameters
listener:Function — the listener
 
priority:int (default = 0) — the priority
 
useWeakReference:Boolean (default = false) — Determines whether the reference to the listener is strong or weak.

See also

org.aswing.event.AWEvent.ACT
getEditorComponent()method 
public function getEditorComponent():Component

Return the component that performance the editing asset.

Returns
Component — the editor component
getValue()method 
public function getValue():*

Return the edited item.

Returns
*
isEditable()method 
public function isEditable():Boolean

Returns whether the editor is editable now.

Returns
Boolean
removeActionListener()method 
public function removeActionListener(listener:Function):void

Removes a action listener.

Parameters
listener:Function — the listener to be removed.

See also

org.aswing.event.AWEvent.ACT
selectAll()method 
public function selectAll():void

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

setEditable()method 
public function setEditable(b:Boolean):void

Sets whether the editor is editable now.

Parameters
b:Boolean
setValue()method 
public function setValue(value:*):void

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

Parameters
value:*