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

php\swing\Color

property selectionForeground

php\swing\Color

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:
  • $itemsarray
getItem($index)
Parameters:
  • $indexint
Returns:

string, null

addItem($item)
Parameters:
  • $itemstring
insertItem($index, $item)
Parameters:
  • $indexint
  • $itemstring
removeItem($index)
Parameters:
  • $indexint
removeAllItems()
onCellRender($callback = null)
Parameters:
  • $callbackcallable - (UIListbox $self, UILabel $template, $value, int $index, bool isSelected, bool cellHasFocus)