Package snap.view
Class Tab
java.lang.Object
snap.props.PropObject
snap.view.Tab
- All Implemented Interfaces:
PropChange.DoChange
A class to represent a TabView tab.
-
Nested Class Summary
-
Field Summary
Fields inherited from class snap.props.PropObject
_pcs, EMPTY_OBJECT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCloseBoxToButton
(ToggleButton tabButton) Adds close box to button.protected ToggleButton
Creates the button.Returns the button.Returns the content.Returns the content owner.int
getIndex()
Returns the index of this tab in TabView.getTitle()
Returns the title.boolean
Returns whether tab should show close box.boolean
Returns whether content is set.boolean
Returns whether tab is visible.void
setClosable
(boolean aValue) Sets whether tab should show close box.void
setContent
(View aView) Sets the content.void
setContentOwner
(ViewOwner aViewOwner) Sets the content owner.void
Sets the title.void
setVisible
(boolean aValue) Sets whether tab is visible.protected void
tabCloseBoxDidFireAction
(ViewEvent anEvent) Called when tab button close box is triggered.Standard toString implementation.Methods inherited from class snap.props.PropObject
addDeepChangeListener, addPropChangeListener, addPropChangeListener, clone, firePropChange, firePropChange, firePropChange, getPropDefault, getPropForName, getPropParent, getPropSet, getPropsForArchival, getPropsForArchivalExtra, getPropsString, getPropValue, initProps, isPropDefault, processPropChange, removeDeepChangeListener, removePropChangeListener, removePropChangeListener, setPropsString, setPropValue, setPropValues, toString
-
Field Details
-
_tabBar
-
-
Constructor Details
-
Tab
public Tab()Creates a new Tab.
-
-
Method Details
-
getTitle
Returns the title. -
setTitle
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
Returns the button. -
createButton
Creates the button. -
isContentSet
public boolean isContentSet()Returns whether content is set. -
getContent
Returns the content. -
setContent
Sets the content. -
getContentOwner
Returns the content owner. -
setContentOwner
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
Adds close box to button. -
tabCloseBoxDidFireAction
Called when tab button close box is triggered. -
toStringProps
Standard toString implementation.- Overrides:
toStringProps
in classPropObject
-