public class Tag
extends java.lang.Object
implements java.lang.Cloneable
TabSwitcher.| Constructor and Description |
|---|
Tag()
Creates a new tag, which allows to store the properties of the tabs of a
TabSwitcher. |
| Modifier and Type | Method and Description |
|---|---|
Tag |
clone() |
float |
getPosition()
Returns the position of the tab on the dragging axis.
|
State |
getState()
Returns the state of the tab.
|
boolean |
isClosing()
Returns, whether the tab is currently being closed, or not.
|
void |
setClosing(boolean closing)
Sets, whether the tab is currently being closed, or not.
|
void |
setPosition(float position)
Sets the position of the tab on the dragging axis.
|
void |
setState(State state)
Sets the state of the tab.
|
public Tag()
TabSwitcher.public final float getPosition()
Float valuepublic final void setPosition(float position)
position - The position, which should be set, as a Float valuepublic final State getState()
State. The state may not be nullpublic final void setState(State state)
state - The state, which should be set, as a value of the enum State. The state may
not be nullpublic final boolean isClosing()
public final void setClosing(boolean closing)
closing - True, if the tab is currently being closed, false otherwisepublic final Tag clone()
clone in class java.lang.Object