UITabs

php\swing\UITabs

extends: php\swing\UIContainer

Class UITabs

Events: change

Properties


property selectedIndex

int

property selectedComponent

php\swing\UIElement

property tabPlacement

php\swing\string - left, right, top, bottom

property tabCount

int

read-only

Methods


addTab($title, $component, $icon = null)
Параметры:
getTitleAt($index)
Параметры:
  • $indexint
Результат:

string

setTitleAt($index, $value)
Параметры:
  • $indexint
  • $valuestring
getToolTipTextAt($index)
Параметры:
  • $indexint
Результат:

string

setToolTipTextAt($index, $value)
Параметры:
  • $indexint
  • $valuestring
getTabIconAt($index)
Параметры:
  • $indexint
Результат:

php\swing\Image

setTabIconAt($index, $image)
Параметры:
getTabComponentAt($index)
Параметры:
  • $indexint
Результат:

php\swing\UIElement

setTabComponentAt($index, $component)
Параметры:
removeTabAt($index)
Параметры:
  • $indexint
removeAll()
indexAtPosition($x, $y)
Параметры:
  • $xint
  • $yint
Результат:

int

isEnabledAt($index)
Параметры:
  • $indexint
Результат:

bool

setEnabledAt($index, $enabled)
Параметры:
  • $indexint
  • $enabledbool