UIListbox¶
-
php\swing\UIListbox extends: php\swing\UIContainer
Class UIListbox
Properties
- property
multiple¶
bool
- property
selectedIndex¶
int
- property
selectedIndexes¶
int[]
- property
maxSelectionIndex¶
int
- property
minSelectionIndex¶
int
- property
visibleRowCount¶
int
- property
selectionBackground¶
- property
selectionForeground¶
- property
horScrollPolicy¶
php\swing\string - ALWAYS, HIDDEN, AUTO
- property
verScrollPolicy¶
php\swing\string - ALWAYS, HIDDEN, AUTO
- property
itemCount¶
intread-only
Methods
setItems($items)¶
Параметры:
- $items –
array
getItem($index)¶
Параметры:
- $index –
intРезультат:
string,null
addItem($item)¶
Параметры:
- $item –
string
insertItem($index, $item)¶
Параметры:
- $index –
int- $item –
string
removeItem($index)¶
Параметры:
- $index –
int
removeAllItems()¶
onCellRender($callback = null)¶
Параметры:
- $callback –
callable- (UIListbox $self, UILabel $template, $value, int $index, bool isSelected, bool cellHasFocus)