Class TitledTabStateProperties
- java.lang.Object
-
- net.infonode.properties.propertymap.PropertyMapContainer
-
- net.infonode.tabbedpanel.titledtab.TitledTabStateProperties
-
public class TitledTabStateProperties extends PropertyMapContainer
TitledTabStateProperties holds all properties that are unique for a titled tab state.- See Also:
TitledTab,TitledTabProperties
-
-
Field Summary
Fields Modifier and Type Field Description static PropertyMapPropertyCOMPONENT_PROPERTIESTab component properties.static DirectionPropertyDIRECTIONDirection propertystatic AlignmentPropertyHORIZONTAL_ALIGNMENTHorizontal alignment propertystatic IconPropertyICONIcon propertystatic IntegerPropertyICON_TEXT_GAPIcon text gap propertystatic AlignmentPropertyICON_TEXT_RELATIVE_ALIGNMENTIcon text relative alignment propertystatic BooleanPropertyICON_VISIBLEIcon visible propertystatic PropertyMapGroupPROPERTIESA property group for all properties in TitledTabStatePropertiesstatic PropertyMapPropertySHAPED_PANEL_PROPERTIESTab shaped panel properties.static StringPropertyTEXTText propertystatic IntegerPropertyTEXT_TITLE_COMPONENT_GAPText title component gap propertystatic BooleanPropertyTEXT_VISIBLEText visible propertystatic AlignmentPropertyTITLE_COMPONENT_TEXT_RELATIVE_ALIGNMENTTitle component text relative alignment propertystatic BooleanPropertyTITLE_COMPONENT_VISIBLETitle component visible propertystatic BooleanPropertyTOOL_TIP_ENABLEDTool tip enabled propertystatic StringPropertyTOOL_TIP_TEXTTool tip text propertystatic AlignmentPropertyVERTICAL_ALIGNMENTVertical alignment property
-
Constructor Summary
Constructors Constructor Description TitledTabStateProperties()Constructs an empty TitledTabStateProperties objectTitledTabStateProperties(PropertyMap map)Constructs 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TitledTabStatePropertiesaddSuperObject(TitledTabStateProperties superObject)Adds a super object from which property values are inherited.ComponentPropertiesgetComponentProperties()Gets the component properties.DirectiongetDirection()Gets the direction, i.e.AlignmentgetHorizontalAlignment()Gets the text's and icon's horizontal alignmentjavax.swing.IcongetIcon()Gets the iconintgetIconTextGap()Gets the gap in pixels between the icon and the textAlignmentgetIconTextRelativeAlignment()Gets the icon alignment relative to the text.booleangetIconVisible()Gets if icon is visible or not visibleShapedPanelPropertiesgetShapedPanelProperties()Gets the shaped panel properties.java.lang.StringgetText()Gets the textintgetTextTitleComponentGap()Gets the gap in pixels between the text/icon and the title componentbooleangetTextVisible()Gets if text is visible or not visibleAlignmentgetTitleComponentTextRelativeAlignment()Gets the title components alignment relative to the text/iconbooleangetTitleComponentVisible()Gets if title component is visible or not visiblebooleangetToolTipEnabled()Gets if tool tip text is enabled or disabledjava.lang.StringgetToolTipText()Gets the tool tip textAlignmentgetVerticalAlignment()Gets the text's and icon's vertical alignmentTitledTabStatePropertiesremoveSuperObject()Removes the last added super object.TitledTabStatePropertiesremoveSuperObject(TitledTabStateProperties superObject)Removes the given super object.TitledTabStatePropertiessetDirection(Direction direction)Sets the direction, i.e.TitledTabStatePropertiessetHorizontalAlignment(Alignment alignment)Sets the text's and icon's horizontal alignmentTitledTabStatePropertiessetIcon(javax.swing.Icon icon)Sets the iconTitledTabStatePropertiessetIconTextGap(int gap)Sets the gap in pixels between the icon and the textTitledTabStatePropertiessetIconTextRelativeAlignment(Alignment alignment)Sets the icon alignment relative to the text.TitledTabStatePropertiessetIconVisible(boolean visible)Sets if icon is visible or not visibleTitledTabStatePropertiessetText(java.lang.String text)Sets the textTitledTabStatePropertiessetTextTitleComponentGap(int gap)Sets the gap in pixels between the text/icon and the title componentTitledTabStatePropertiessetTextVisible(boolean visible)Sets if text is visible or not visibleTitledTabStatePropertiessetTitleComponentTextRelativeAlignment(Alignment alignment)Sets the title components alignment relative to the text/iconTitledTabStatePropertiessetTitleComponentVisible(boolean visible)Sets if title component is visible or not visibleTitledTabStatePropertiessetToolTipEnabled(boolean enabled)Sets if tool tip text is enabled or disabledTitledTabStatePropertiessetToolTipText(java.lang.String text)Sets the tool tip textTitledTabStatePropertiessetVerticalAlignment(Alignment alignment)Sets the text's and icon's vertical alignment-
Methods inherited from class net.infonode.properties.propertymap.PropertyMapContainer
getMap
-
-
-
-
Field Detail
-
PROPERTIES
public static final PropertyMapGroup PROPERTIES
A property group for all properties in TitledTabStateProperties
-
ICON
public static final IconProperty ICON
Icon property- See Also:
setIcon(javax.swing.Icon),getIcon()
-
TEXT
public static final StringProperty TEXT
Text property- See Also:
setText(java.lang.String),getText()
-
ICON_TEXT_GAP
public static final IntegerProperty ICON_TEXT_GAP
Icon text gap property- See Also:
setIconTextGap(int),getIconTextGap()
-
TOOL_TIP_TEXT
public static final StringProperty TOOL_TIP_TEXT
Tool tip text property- See Also:
setToolTipText(java.lang.String),getToolTipText()
-
TOOL_TIP_ENABLED
public static final BooleanProperty TOOL_TIP_ENABLED
Tool tip enabled property- See Also:
setToolTipEnabled(boolean),getToolTipEnabled()
-
ICON_VISIBLE
public static final BooleanProperty ICON_VISIBLE
Icon visible property- Since:
- ITP 1.1.0
- See Also:
setIconVisible(boolean),getIconVisible()
-
TEXT_VISIBLE
public static final BooleanProperty TEXT_VISIBLE
Text visible property- Since:
- ITP 1.1.0
- See Also:
setTextVisible(boolean),getTextVisible()
-
TITLE_COMPONENT_VISIBLE
public static final BooleanProperty TITLE_COMPONENT_VISIBLE
Title component visible property- Since:
- ITP 1.1.0
- See Also:
setTitleComponentVisible(boolean),getTitleComponentVisible()
-
HORIZONTAL_ALIGNMENT
public static final AlignmentProperty HORIZONTAL_ALIGNMENT
Horizontal alignment property
-
VERTICAL_ALIGNMENT
public static final AlignmentProperty VERTICAL_ALIGNMENT
Vertical alignment property
-
ICON_TEXT_RELATIVE_ALIGNMENT
public static final AlignmentProperty ICON_TEXT_RELATIVE_ALIGNMENT
Icon text relative alignment property
-
TEXT_TITLE_COMPONENT_GAP
public static final IntegerProperty TEXT_TITLE_COMPONENT_GAP
Text title component gap property
-
TITLE_COMPONENT_TEXT_RELATIVE_ALIGNMENT
public static final AlignmentProperty TITLE_COMPONENT_TEXT_RELATIVE_ALIGNMENT
Title component text relative alignment property
-
DIRECTION
public static final DirectionProperty DIRECTION
Direction property
-
COMPONENT_PROPERTIES
public static final PropertyMapProperty COMPONENT_PROPERTIES
Tab component properties.
-
SHAPED_PANEL_PROPERTIES
public static final PropertyMapProperty SHAPED_PANEL_PROPERTIES
Tab shaped panel properties.- Since:
- ITP 1.2.0
-
-
Constructor Detail
-
TitledTabStateProperties
public TitledTabStateProperties()
Constructs an empty TitledTabStateProperties object
-
TitledTabStateProperties
public TitledTabStateProperties(PropertyMap map)
Constructs a TitledTabStateProperties map with the give map as property storage- Parameters:
map- map to store properties in
-
TitledTabStateProperties
public TitledTabStateProperties(TitledTabStateProperties inheritFrom)
Constructs a TitledTabStateProperties object that inherits its properties from the given TitledTabStateProperties object- Parameters:
inheritFrom- TitledTabStateProperties object to inherit properties from
-
-
Method Detail
-
addSuperObject
public TitledTabStateProperties addSuperObject(TitledTabStateProperties superObject)
Adds a super object from which property values are inherited.- Parameters:
superObject- the object from which to inherit property values- Returns:
- this
-
removeSuperObject
public TitledTabStateProperties removeSuperObject()
Removes the last added super object.- Returns:
- this
-
removeSuperObject
public TitledTabStateProperties removeSuperObject(TitledTabStateProperties superObject)
Removes the given super object.- Parameters:
superObject- super object to remove- Returns:
- this
- Since:
- ITP 1.3.0
-
setIcon
public TitledTabStateProperties setIcon(javax.swing.Icon icon)
Sets the icon- Parameters:
icon- icon or null for no icon- Returns:
- this TitledTabStateProperties
-
getIcon
public javax.swing.Icon getIcon()
Gets the icon- Returns:
- icon or null if no icon
-
setText
public TitledTabStateProperties setText(java.lang.String text)
Sets the text- Parameters:
text- text or null for no text- Returns:
- this TitledTabStateProperties
-
getText
public java.lang.String getText()
Gets the text- Returns:
- text or null if no text
-
setIconTextGap
public TitledTabStateProperties setIconTextGap(int gap)
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
public TitledTabStateProperties setToolTipText(java.lang.String text)
Sets the tool tip text- Parameters:
text- tool tip text- Returns:
- this TitledTabStateProperties
-
getToolTipText
public java.lang.String getToolTipText()
Gets the tool tip text- Returns:
- tool tip text
-
setToolTipEnabled
public TitledTabStateProperties setToolTipEnabled(boolean enabled)
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
public TitledTabStateProperties setIconVisible(boolean visible)
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
public TitledTabStateProperties setTextVisible(boolean visible)
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
public TitledTabStateProperties setTitleComponentVisible(boolean visible)
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
public TitledTabStateProperties setHorizontalAlignment(Alignment alignment)
Sets the text's and icon's horizontal alignment- Parameters:
alignment- text and icon alignment- Returns:
- this TitledTabStateProperties
-
getHorizontalAlignment
public Alignment getHorizontalAlignment()
Gets the text's and icon's horizontal alignment- Returns:
- text and icon alignment
-
setVerticalAlignment
public TitledTabStateProperties setVerticalAlignment(Alignment alignment)
Sets the text's and icon's vertical alignment- Parameters:
alignment- text and icon horizontal alignment- Returns:
- this TitledTabStateProperties
-
getVerticalAlignment
public Alignment getVerticalAlignment()
Gets the text's and icon's vertical alignment- Returns:
- text and icon vertical alignment
-
setIconTextRelativeAlignment
public TitledTabStateProperties setIconTextRelativeAlignment(Alignment alignment)
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
public Alignment getIconTextRelativeAlignment()
Gets the icon alignment relative to the text.- Returns:
- icon alignment relative to text
-
setTextTitleComponentGap
public TitledTabStateProperties setTextTitleComponentGap(int gap)
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
public TitledTabStateProperties setTitleComponentTextRelativeAlignment(Alignment alignment)
Sets the title components alignment relative to the text/icon- Parameters:
alignment- title component alignment relative to text/icon- Returns:
- this TitledTabStateProperties
-
getTitleComponentTextRelativeAlignment
public Alignment getTitleComponentTextRelativeAlignment()
Gets the title components alignment relative to the text/icon- Returns:
- title component alignment relative to text/icon
-
setDirection
public TitledTabStateProperties setDirection(Direction direction)
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
public Direction 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
public ComponentProperties getComponentProperties()
Gets the component properties.- Returns:
- component properties
-
getShapedPanelProperties
public ShapedPanelProperties getShapedPanelProperties()
Gets the shaped panel properties.- Returns:
- shaped panel properties
- Since:
- ITP 1.2.0
-
-