public class TitledTabStateProperties extends PropertyMapContainer
TitledTab
,
TitledTabProperties
Modifier and Type | Field and Description |
---|---|
static PropertyMapProperty |
COMPONENT_PROPERTIES
Tab component properties.
|
static DirectionProperty |
DIRECTION
Direction property
|
static AlignmentProperty |
HORIZONTAL_ALIGNMENT
Horizontal alignment property
|
static IconProperty |
ICON
Icon property
|
static IntegerProperty |
ICON_TEXT_GAP
Icon text gap property
|
static AlignmentProperty |
ICON_TEXT_RELATIVE_ALIGNMENT
Icon text relative alignment property
|
static BooleanProperty |
ICON_VISIBLE
Icon visible property
|
static PropertyMapGroup |
PROPERTIES
A property group for all properties in TitledTabStateProperties
|
static PropertyMapProperty |
SHAPED_PANEL_PROPERTIES
Tab shaped panel properties.
|
static StringProperty |
TEXT
Text property
|
static IntegerProperty |
TEXT_TITLE_COMPONENT_GAP
Text title component gap property
|
static BooleanProperty |
TEXT_VISIBLE
Text visible property
|
static AlignmentProperty |
TITLE_COMPONENT_TEXT_RELATIVE_ALIGNMENT
Title component text relative alignment property
|
static BooleanProperty |
TITLE_COMPONENT_VISIBLE
Title component visible property
|
static BooleanProperty |
TOOL_TIP_ENABLED
Tool tip enabled property
|
static StringProperty |
TOOL_TIP_TEXT
Tool tip text property
|
static AlignmentProperty |
VERTICAL_ALIGNMENT
Vertical alignment property
|
Constructor and Description |
---|
TitledTabStateProperties()
Constructs an empty TitledTabStateProperties object
|
TitledTabStateProperties(PropertyMap map)
Constructs a TitledTabStateProperties map with the give map as property storage
|
TitledTabStateProperties(TitledTabStateProperties inheritFrom)
Constructs a TitledTabStateProperties object that inherits its properties from the given TitledTabStateProperties object
|
Modifier and Type | Method and Description |
---|---|
TitledTabStateProperties |
addSuperObject(TitledTabStateProperties superObject)
Adds a super object from which property values are inherited.
|
ComponentProperties |
getComponentProperties()
Gets the component properties.
|
Direction |
getDirection()
Gets the direction, i.e.
|
Alignment |
getHorizontalAlignment()
Gets the text's and icon's horizontal alignment
|
javax.swing.Icon |
getIcon()
Gets the icon
|
int |
getIconTextGap()
Gets the gap in pixels between the icon and the text
|
Alignment |
getIconTextRelativeAlignment()
Gets the icon alignment relative to the text.
|
boolean |
getIconVisible()
Gets if icon is visible or not visible
|
ShapedPanelProperties |
getShapedPanelProperties()
Gets the shaped panel properties.
|
java.lang.String |
getText()
Gets the text
|
int |
getTextTitleComponentGap()
Gets the gap in pixels between the text/icon and the title component
|
boolean |
getTextVisible()
Gets if text is visible or not visible
|
Alignment |
getTitleComponentTextRelativeAlignment()
Gets the title components alignment relative to the text/icon
|
boolean |
getTitleComponentVisible()
Gets if title component is visible or not visible
|
boolean |
getToolTipEnabled()
Gets if tool tip text is enabled or disabled
|
java.lang.String |
getToolTipText()
Gets the tool tip text
|
Alignment |
getVerticalAlignment()
Gets the text's and icon's vertical alignment
|
TitledTabStateProperties |
removeSuperObject()
Removes the last added super object.
|
TitledTabStateProperties |
removeSuperObject(TitledTabStateProperties superObject)
Removes the given super object.
|
TitledTabStateProperties |
setDirection(Direction direction)
Sets the direction, i.e.
|
TitledTabStateProperties |
setHorizontalAlignment(Alignment alignment)
Sets the text's and icon's horizontal alignment
|
TitledTabStateProperties |
setIcon(javax.swing.Icon icon)
Sets the icon
|
TitledTabStateProperties |
setIconTextGap(int gap)
Sets the gap in pixels between the icon and the text
|
TitledTabStateProperties |
setIconTextRelativeAlignment(Alignment alignment)
Sets the icon alignment relative to the text.
|
TitledTabStateProperties |
setIconVisible(boolean visible)
Sets if icon is visible or not visible
|
TitledTabStateProperties |
setText(java.lang.String text)
Sets the text
|
TitledTabStateProperties |
setTextTitleComponentGap(int gap)
Sets the gap in pixels between the text/icon and the title component
|
TitledTabStateProperties |
setTextVisible(boolean visible)
Sets if text is visible or not visible
|
TitledTabStateProperties |
setTitleComponentTextRelativeAlignment(Alignment alignment)
Sets the title components alignment relative to the text/icon
|
TitledTabStateProperties |
setTitleComponentVisible(boolean visible)
Sets if title component is visible or not visible
|
TitledTabStateProperties |
setToolTipEnabled(boolean enabled)
Sets if tool tip text is enabled or disabled
|
TitledTabStateProperties |
setToolTipText(java.lang.String text)
Sets the tool tip text
|
TitledTabStateProperties |
setVerticalAlignment(Alignment alignment)
Sets the text's and icon's vertical alignment
|
getMap
public static final PropertyMapGroup PROPERTIES
public static final IconProperty ICON
setIcon(javax.swing.Icon)
,
getIcon()
public static final StringProperty TEXT
setText(java.lang.String)
,
getText()
public static final IntegerProperty ICON_TEXT_GAP
setIconTextGap(int)
,
getIconTextGap()
public static final StringProperty TOOL_TIP_TEXT
setToolTipText(java.lang.String)
,
getToolTipText()
public static final BooleanProperty TOOL_TIP_ENABLED
setToolTipEnabled(boolean)
,
getToolTipEnabled()
public static final BooleanProperty ICON_VISIBLE
setIconVisible(boolean)
,
getIconVisible()
public static final BooleanProperty TEXT_VISIBLE
setTextVisible(boolean)
,
getTextVisible()
public static final BooleanProperty TITLE_COMPONENT_VISIBLE
setTitleComponentVisible(boolean)
,
getTitleComponentVisible()
public static final AlignmentProperty HORIZONTAL_ALIGNMENT
public static final AlignmentProperty VERTICAL_ALIGNMENT
public static final AlignmentProperty ICON_TEXT_RELATIVE_ALIGNMENT
public static final IntegerProperty TEXT_TITLE_COMPONENT_GAP
public static final AlignmentProperty TITLE_COMPONENT_TEXT_RELATIVE_ALIGNMENT
public static final DirectionProperty DIRECTION
public static final PropertyMapProperty COMPONENT_PROPERTIES
public static final PropertyMapProperty SHAPED_PANEL_PROPERTIES
public TitledTabStateProperties()
public TitledTabStateProperties(PropertyMap map)
map
- map to store properties inpublic TitledTabStateProperties(TitledTabStateProperties inheritFrom)
inheritFrom
- TitledTabStateProperties object to inherit properties frompublic TitledTabStateProperties addSuperObject(TitledTabStateProperties superObject)
superObject
- the object from which to inherit property valuespublic TitledTabStateProperties removeSuperObject()
public TitledTabStateProperties removeSuperObject(TitledTabStateProperties superObject)
superObject
- super object to removepublic TitledTabStateProperties setIcon(javax.swing.Icon icon)
icon
- icon or null for no iconpublic javax.swing.Icon getIcon()
public TitledTabStateProperties setText(java.lang.String text)
text
- text or null for no textpublic java.lang.String getText()
public TitledTabStateProperties setIconTextGap(int gap)
gap
- number of pixelspublic int getIconTextGap()
public TitledTabStateProperties setToolTipText(java.lang.String text)
text
- tool tip textpublic java.lang.String getToolTipText()
public TitledTabStateProperties setToolTipEnabled(boolean enabled)
enabled
- true for enabled, otherwise falsepublic boolean getToolTipEnabled()
public TitledTabStateProperties setIconVisible(boolean visible)
visible
- true for visible, otherwise falsepublic boolean getIconVisible()
public TitledTabStateProperties setTextVisible(boolean visible)
visible
- true for visible, otherwise falsepublic boolean getTextVisible()
public TitledTabStateProperties setTitleComponentVisible(boolean visible)
visible
- true for enabled, otherwise falsepublic boolean getTitleComponentVisible()
public TitledTabStateProperties setHorizontalAlignment(Alignment alignment)
alignment
- text and icon alignmentpublic Alignment getHorizontalAlignment()
public TitledTabStateProperties setVerticalAlignment(Alignment alignment)
alignment
- text and icon horizontal alignmentpublic Alignment getVerticalAlignment()
public TitledTabStateProperties setIconTextRelativeAlignment(Alignment alignment)
alignment
- icon alignment relative to textpublic Alignment getIconTextRelativeAlignment()
public TitledTabStateProperties setTextTitleComponentGap(int gap)
gap
- number of pixelspublic int getTextTitleComponentGap()
public TitledTabStateProperties setTitleComponentTextRelativeAlignment(Alignment alignment)
alignment
- title component alignment relative to text/iconpublic Alignment getTitleComponentTextRelativeAlignment()
public TitledTabStateProperties setDirection(Direction direction)
direction
- directionpublic Direction getDirection()
public ComponentProperties getComponentProperties()
public ShapedPanelProperties getShapedPanelProperties()