Class UITab

All Implemented Interfaces:
UIKeyHandler, Textable, Hintable, Savable

public class UITab extends UIButton
An extension of UIButton to be used as the tabs in a tabbed pane. Always "Selectable" (aka. toggle style)
  • Constructor Details

    • UITab

      public UITab(String label, SubTex icon, UITabbedPane.TabPlacement placement)
      Construct a new UITabe with the given label text and icon.
      Parameters:
      label - optional tab label
      icon - optional tab text
      placement - the edge or border on which this tab will be used.
  • Method Details

    • applySkin

      protected void applySkin()
      Overrides:
      applySkin in class UIComponent
    • setSelectable

      public void setSelectable(boolean selectable)
      Overrides:
      setSelectable in class UIButton
      Parameters:
      selectable - true if this button should be selectable
    • isSelectable

      public boolean isSelectable()
      Overrides:
      isSelectable in class UIButton
      Returns:
      true if button is selectable
    • getPlacement

      public UITabbedPane.TabPlacement getPlacement()
      Returns:
      the placement