Class TitledTabStateProperties
java.lang.Object
net.infonode.properties.propertymap.PropertyMapContainer
net.infonode.tabbedpanel.titledtab.TitledTabStateProperties
TitledTabStateProperties holds all properties that are unique for a titled tab state.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyMapProperty
Tab component properties.static final DirectionProperty
Direction propertystatic final AlignmentProperty
Horizontal alignment propertystatic final IconProperty
Icon propertystatic final IntegerProperty
Icon text gap propertystatic final AlignmentProperty
Icon text relative alignment propertystatic final BooleanProperty
Icon visible propertystatic final PropertyMapGroup
A property group for all properties in TitledTabStatePropertiesstatic final PropertyMapProperty
Tab shaped panel properties.static final StringProperty
Text propertystatic final IntegerProperty
Text title component gap propertystatic final BooleanProperty
Text visible propertystatic final AlignmentProperty
Title component text relative alignment propertystatic final BooleanProperty
Title component visible propertystatic final BooleanProperty
Tool tip enabled propertystatic final StringProperty
Tool tip text propertystatic final AlignmentProperty
Vertical alignment property -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty TitledTabStateProperties objectConstructs a TitledTabStateProperties map with the give map as property storageTitledTabStateProperties
(TitledTabStateProperties inheritFrom) Constructs a TitledTabStateProperties object that inherits its properties from the given TitledTabStateProperties object -
Method Summary
Modifier and TypeMethodDescriptionaddSuperObject
(TitledTabStateProperties superObject) Adds a super object from which property values are inherited.Gets the component properties.Gets the direction, i.e.Gets the text's and icon's horizontal alignmentgetIcon()
Gets the iconint
Gets the gap in pixels between the icon and the textGets the icon alignment relative to the text.boolean
Gets if icon is visible or not visibleGets the shaped panel properties.getText()
Gets the textint
Gets the gap in pixels between the text/icon and the title componentboolean
Gets if text is visible or not visibleGets the title components alignment relative to the text/iconboolean
Gets if title component is visible or not visibleboolean
Gets if tool tip text is enabled or disabledGets the tool tip textGets the text's and icon's vertical alignmentRemoves the last added super object.removeSuperObject
(TitledTabStateProperties superObject) Removes the given super object.setDirection
(Direction direction) Sets the direction, i.e.setHorizontalAlignment
(Alignment alignment) Sets the text's and icon's horizontal alignmentSets the iconsetIconTextGap
(int gap) Sets the gap in pixels between the icon and the textsetIconTextRelativeAlignment
(Alignment alignment) Sets the icon alignment relative to the text.setIconVisible
(boolean visible) Sets if icon is visible or not visibleSets the textsetTextTitleComponentGap
(int gap) Sets the gap in pixels between the text/icon and the title componentsetTextVisible
(boolean visible) Sets if text is visible or not visiblesetTitleComponentTextRelativeAlignment
(Alignment alignment) Sets the title components alignment relative to the text/iconsetTitleComponentVisible
(boolean visible) Sets if title component is visible or not visiblesetToolTipEnabled
(boolean enabled) Sets if tool tip text is enabled or disabledsetToolTipText
(String text) Sets the tool tip textsetVerticalAlignment
(Alignment alignment) Sets the text's and icon's vertical alignmentMethods inherited from class net.infonode.properties.propertymap.PropertyMapContainer
getMap
-
Field Details
-
PROPERTIES
A property group for all properties in TitledTabStateProperties -
ICON
Icon property- See Also:
-
TEXT
Text property- See Also:
-
ICON_TEXT_GAP
Icon text gap property- See Also:
-
TOOL_TIP_TEXT
Tool tip text property -
TOOL_TIP_ENABLED
Tool tip enabled property -
ICON_VISIBLE
Icon visible property- Since:
- ITP 1.1.0
- See Also:
-
TEXT_VISIBLE
Text visible property- Since:
- ITP 1.1.0
- See Also:
-
TITLE_COMPONENT_VISIBLE
Title component visible property- Since:
- ITP 1.1.0
- See Also:
-
HORIZONTAL_ALIGNMENT
Horizontal alignment property -
VERTICAL_ALIGNMENT
Vertical alignment property -
ICON_TEXT_RELATIVE_ALIGNMENT
Icon text relative alignment property -
TEXT_TITLE_COMPONENT_GAP
Text title component gap property -
TITLE_COMPONENT_TEXT_RELATIVE_ALIGNMENT
Title component text relative alignment property -
DIRECTION
Direction property -
COMPONENT_PROPERTIES
Tab component properties. -
SHAPED_PANEL_PROPERTIES
Tab shaped panel properties.- Since:
- ITP 1.2.0
-
-
Constructor Details
-
TitledTabStateProperties
public TitledTabStateProperties()Constructs an empty TitledTabStateProperties object -
TitledTabStateProperties
Constructs a TitledTabStateProperties map with the give map as property storage- Parameters:
map
- map to store properties in
-
TitledTabStateProperties
Constructs a TitledTabStateProperties object that inherits its properties from the given TitledTabStateProperties object- Parameters:
inheritFrom
- TitledTabStateProperties object to inherit properties from
-
-
Method Details
-
addSuperObject
Adds a super object from which property values are inherited.- Parameters:
superObject
- the object from which to inherit property values- Returns:
- this
-
removeSuperObject
Removes the last added super object.- Returns:
- this
-
removeSuperObject
Removes the given super object.- Parameters:
superObject
- super object to remove- Returns:
- this
- Since:
- ITP 1.3.0
-
setIcon
Sets the icon- Parameters:
icon
- icon or null for no icon- Returns:
- this TitledTabStateProperties
-
getIcon
Gets the icon- Returns:
- icon or null if no icon
-
setText
Sets the text- Parameters:
text
- text or null for no text- Returns:
- this TitledTabStateProperties
-
getText
Gets the text- Returns:
- text or null if no text
-
setIconTextGap
Sets the gap in pixels between the icon and the text- Parameters:
gap
- number of pixels- Returns:
- this TitledTabStateProperties
-
getIconTextGap
public int getIconTextGap()Gets the gap in pixels between the icon and the text- Returns:
- number of pixels
-
setToolTipText
Sets the tool tip text- Parameters:
text
- tool tip text- Returns:
- this TitledTabStateProperties
-
getToolTipText
Gets the tool tip text- Returns:
- tool tip text
-
setToolTipEnabled
Sets if tool tip text is enabled or disabled- Parameters:
enabled
- true for enabled, otherwise false- Returns:
- this TitledTabStateProperties
-
getToolTipEnabled
public boolean getToolTipEnabled()Gets if tool tip text is enabled or disabled- Returns:
- true if enabled, otherwise false
-
setIconVisible
Sets if icon is visible or not visible- Parameters:
visible
- true for visible, otherwise false- Returns:
- this TitledTabStateProperties
- Since:
- ITP 1.1.0
-
getIconVisible
public boolean getIconVisible()Gets if icon is visible or not visible- Returns:
- true if visible, otherwise false
- Since:
- ITP 1.1.0
-
setTextVisible
Sets if text is visible or not visible- Parameters:
visible
- true for visible, otherwise false- Returns:
- this TitledTabStateProperties
- Since:
- ITP 1.1.0
-
getTextVisible
public boolean getTextVisible()Gets if text is visible or not visible- Returns:
- true if visible, otherwise false
- Since:
- ITP 1.1.0
-
setTitleComponentVisible
Sets if title component is visible or not visible- Parameters:
visible
- true for enabled, otherwise false- Returns:
- this TitledTabStateProperties
- Since:
- ITP 1.1.0
-
getTitleComponentVisible
public boolean getTitleComponentVisible()Gets if title component is visible or not visible- Returns:
- true if enabled, otherwise false
- Since:
- ITP 1.1.0
-
setHorizontalAlignment
Sets the text's and icon's horizontal alignment- Parameters:
alignment
- text and icon alignment- Returns:
- this TitledTabStateProperties
-
getHorizontalAlignment
Gets the text's and icon's horizontal alignment- Returns:
- text and icon alignment
-
setVerticalAlignment
Sets the text's and icon's vertical alignment- Parameters:
alignment
- text and icon horizontal alignment- Returns:
- this TitledTabStateProperties
-
getVerticalAlignment
Gets the text's and icon's vertical alignment- Returns:
- text and icon vertical alignment
-
setIconTextRelativeAlignment
Sets the icon alignment relative to the text. Makes it possible to switch places between text and icon.- Parameters:
alignment
- icon alignment relative to text- Returns:
- this TitledTabStateProperties
-
getIconTextRelativeAlignment
Gets the icon alignment relative to the text.- Returns:
- icon alignment relative to text
-
setTextTitleComponentGap
Sets the gap in pixels between the text/icon and the title component- Parameters:
gap
- number of pixels- Returns:
- this TitledTabStateProperties
-
getTextTitleComponentGap
public int getTextTitleComponentGap()Gets the gap in pixels between the text/icon and the title component- Returns:
- number of pixels
-
setTitleComponentTextRelativeAlignment
Sets the title components alignment relative to the text/icon- Parameters:
alignment
- title component alignment relative to text/icon- Returns:
- this TitledTabStateProperties
-
getTitleComponentTextRelativeAlignment
Gets the title components alignment relative to the text/icon- Returns:
- title component alignment relative to text/icon
-
setDirection
Sets the direction, i.e. the line layout of the titled tab's components. The text and icon will be rotated in the given direction and the title component will be moved.- Parameters:
direction
- direction- Returns:
- this TitledTabStateProperties
-
getDirection
Gets the direction, i.e. the line layout of the titled tab components. The text and icon are rotated in the given direction and the title component will be moved.- Returns:
- direction
-
getComponentProperties
Gets the component properties.- Returns:
- component properties
-
getShapedPanelProperties
Gets the shaped panel properties.- Returns:
- shaped panel properties
- Since:
- ITP 1.2.0
-