Class zebkit.ui.Tabs.TabView
extends <zebkit.ui.CompRender>
<zebkit.ui>

Tab view class that defines the tab page title and icon

Constructor:
zebkit.ui.Tabs.TabView ([icon], [caption])

Parameters:
  • [icon] <String | Image>

    an path to an image or image object

  • [caption] <String>

    a tab caption




public <String> getCaption (b)
public void selected (tabs, i, b)
public void setCaption ([b], s)
public void setColor ([b], c)
public void setFont ([b], f)
public void setIcon (c)


public <String> getCaption (b)

Get the tab caption for the specified tab state


Parameters:
  • b <Boolean>

    the tab state. true means selected state.


Returns: <String>

the tab caption

public void selected (tabs, i, b)

The method is invoked every time the tab selection state has been updated


Parameters:
  • tabs <zebkit.ui.Tabs>

    the tabs component the tab belongs

  • i <Integer>

    an index of the tab

  • b <Boolean>

    a new state of the tab

public chainable setCaption ([b], s)

Set the given tab caption for the specified tab or both - selected and not selected - states.


Parameters:
  • [b] <Boolean>

    the tab state. true means selected state.

  • s <String>

    the tab caption

public chainable setColor ([b], c)

Set the given tab caption text color for the specified tab or both selected and not selected states.


Parameters:
  • [b] <Boolean>

    the tab state. true means selected state.

  • c <String>

    the tab caption

public chainable setFont ([b], f)

Set the given tab caption text font for the specified or both selected not slected states.


Parameters:
  • [b] <Boolean>

    the tab state. true means selected state.

  • f <zebkit.Font>

    the tab text font

public chainable setIcon (c)

Set the tab icon.


Parameters:
  • c <String | Image>

    an icon path or image object



Inherited attributes:
public Object target