Package snap.view

Class Tab

All Implemented Interfaces:
PropChange.DoChange

public class Tab extends PropObject
A class to represent a TabView tab.
  • Field Details

    • _tabBar

      protected TabBar _tabBar
  • Constructor Details

    • Tab

      public Tab()
      Creates a new Tab.
  • Method Details

    • getTitle

      public String getTitle()
      Returns the title.
    • setTitle

      public void setTitle(String aTitle)
      Sets the title.
    • isClosable

      public boolean isClosable()
      Returns whether tab should show close box.
    • setClosable

      public void setClosable(boolean aValue)
      Sets whether tab should show close box.
    • getButton

      public ToggleButton getButton()
      Returns the button.
    • createButton

      protected ToggleButton createButton()
      Creates the button.
    • isContentSet

      public boolean isContentSet()
      Returns whether content is set.
    • getContent

      public View getContent()
      Returns the content.
    • setContent

      public void setContent(View aView)
      Sets the content.
    • getContentOwner

      public ViewOwner getContentOwner()
      Returns the content owner.
    • setContentOwner

      public void setContentOwner(ViewOwner aViewOwner)
      Sets the content owner.
    • getIndex

      public int getIndex()
      Returns the index of this tab in TabView.
    • isVisible

      public boolean isVisible()
      Returns whether tab is visible.
    • setVisible

      public void setVisible(boolean aValue)
      Sets whether tab is visible.
    • addCloseBoxToButton

      protected void addCloseBoxToButton(ToggleButton tabButton)
      Adds close box to button.
    • tabCloseBoxDidFireAction

      protected void tabCloseBoxDidFireAction(ViewEvent anEvent)
      Called when tab button close box is triggered.
    • toStringProps

      public String toStringProps()
      Standard toString implementation.
      Overrides:
      toStringProps in class PropObject