| Package | org.aswing |
| Interface | public interface ComboBoxEditor |
| Implementors | DefaultComboBoxEditor |
| Method | Defined 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 | ||
|
getValue():*
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 | ||
| addActionListener | () | method |
public function addActionListener(listener:Function, priority:int = 0, useWeakReference:Boolean = false):voidAdds a listener to listen the editor event when the edited item changes.
Parameterslistener: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
| getEditorComponent | () | method |
public function getEditorComponent():ComponentReturn the component that performance the editing asset.
ReturnsComponent —
the editor component
|
| getValue | () | method |
public function getValue():*Return the edited item.
Returns* |
| isEditable | () | method |
public function isEditable():BooleanReturns whether the editor is editable now.
ReturnsBoolean |
| removeActionListener | () | method |
public function removeActionListener(listener:Function):voidRemoves a action listener.
Parameterslistener:Function — the listener to be removed.
|
See also
| selectAll | () | method |
public function selectAll():voidAsk the editor to start editing and to select everything in the editor.
| setEditable | () | method |
public function setEditable(b:Boolean):voidSets whether the editor is editable now.
Parametersb:Boolean |
| setValue | () | method |
public function setValue(value:*):voidSet the item that should be edited. Cancel any editing if necessary.
Parametersvalue:* |