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
¶int
read-only
Methods
setItems
($items)¶
Parameters:
- $items – array
getItem
($index)¶
Parameters:
- $index – int
Returns: string, null
addItem
($item)¶
Parameters:
- $item – string
insertItem
($index, $item)¶
Parameters:
- $index – int
- $item – string
removeItem
($index)¶
Parameters:
- $index – int
removeAllItems
()¶
onCellRender
($callback = null)¶
Parameters:
- $callback – callable - (UIListbox $self, UILabel $template, $value, int $index, bool isSelected, bool cellHasFocus)