Class
zebkit.ui.Combo
extends <zebkit.ui.Panel> |
<zebkit.ui> |
Combo box UI component class. Combo uses a list component to show in drop down window. You can use any available list component implementation:
// use simple list as combo box drop down window
var combo = new zebkit.ui.Combo(new zebkit.ui.List([
"Item 1",
"Item 2",
"Item 3"
]));
// use component list as combo box drop down window
var combo = new zebkit.ui.Combo(new zebkit.ui.CompList([
"Item 1",
"Item 2",
"Item 3"
]));
// let combo box decides which list component has to be used
var combo = new zebkit.ui.Combo([
"Item 1",
"Item 2",
"Item 3"
]);
zebkit.ui.Combo
(data
)
Parameters:
-
data
<Array | zebkit.ui.BaseList>an combo items array or a list component
public | void | fired (src) |
public | <Object> | getValue ( ) |
public | void | hidePad ( ) |
public | <Boolean> | isPadShown ( ) |
public | void | keyPressed (e) |
public | void | keyTyped (e) |
public | void | pointerPressed (e) |
public | void | select (i) |
protected
|
void | selected (src, data) |
public | void | setEditable (b) |
public | void | setList (l) |
public | void | setMaxPadHeight (h) |
public | void | setSelectView (c) |
public | void | setValue (v) |
public | void | showPad ( ) |
public
void
fired (src )
Combo box button listener method. The method triggers showing combo box pad window when the combo button has been pressed Parameters:
|
public
chainable
hidePad ( )
Hide combo drop down list |
public
void
keyPressed (e )
Define key pressed events handler Parameters:
|
public
void
keyTyped (e )
Define key typed events handler Parameters:
|
public
void
pointerPressed (e )
Define pointer pressed events handler Parameters:
|
public
chainable
select (i )
Select the given value from the list as the combo box value Parameters:
|
protected
void
selected (src, data )
Combo pad list listener method. Called every time an item in combo pad list has been selected. Parameters:
|
public
chainable
setEditable (b )
Make the commbo editable Parameters:
|
public
chainable
setList (l )
Bind the given list component to the combo box component. Parameters:
|
public
chainable
setMaxPadHeight (h )
Set the maximal height of the combo box pad element. Parameters:
|
public
chainable
setSelectView (c )
Set the given combo box selection view Parameters:
|
public
chainable
showPad ( )
Show combo drop down list |












public
![]() maxPadHeight
Maximal size the combo box height can have |
padShown
Implement the event handler method to detect when a combo pad window is shown or hidden
Parameters:
|
selected
Fired when a new value in a combo box component has been selected
Parameters:
|