Package net.infonode.tabbedpanel
Class TabAreaComponentsProperties
java.lang.Object
net.infonode.properties.propertymap.PropertyMapContainer
net.infonode.tabbedpanel.TabAreaComponentsProperties
TabAreaComponentsProperties holds all visual properties for the area in a
tabbed panel's tab area where the tab area components (scroll buttons, tab
drop down list and components set by calling setTabAreaComponents in a tabbed
panel) are shown. TabbedPanelProperties contains TabAreaComponentsProperties.
- Since:
- ITP 1.1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyMapProperty
Properties for the componentstatic final HoverListenerProperty
Hover listener propertystatic final PropertyMapGroup
A property group for all properties in TabAreaComponentsPropertiesstatic final PropertyMapProperty
Properties for the shaped panelstatic final BooleanProperty
Stretch enabled property -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty TabAreaComponentsProperties objectConstructs a TabAreaComponentsProperties object with the given object as property storageTabAreaComponentsProperties
(TabAreaComponentsProperties inheritFrom) Constructs a TabAreaComponentsProperties object that inherits its properties from the given TabAreaComponentsProperties object -
Method Summary
Modifier and TypeMethodDescriptionaddSuperObject
(TabAreaComponentsProperties superObject) Adds a super object from which property values are inherited.Gets the component propertiesGets the hover listener that will be triggered when the tab area components area is hovered by the mouse.Gets the shaped panel propertiesboolean
Gets if components should be stretched to same height as tabs if tabs are higher than components.Removes the last added super object.removeSuperObject
(TabAreaComponentsProperties superObject) Removes the given super object.setHoverListener
(HoverListener listener) Sets the hover listener that will be triggered when the tab area components area is hoverd by the mouse.setStretchEnabled
(boolean enabled) Sets if components should be stretched to same height as tabs if tabs are higher than components.Methods inherited from class net.infonode.properties.propertymap.PropertyMapContainer
getMap
-
Field Details
-
PROPERTIES
A property group for all properties in TabAreaComponentsProperties -
STRETCH_ENABLED
Stretch enabled property -
COMPONENT_PROPERTIES
Properties for the component- See Also:
-
SHAPED_PANEL_PROPERTIES
Properties for the shaped panel- Since:
- ITP 1.2.0
- See Also:
-
HOVER_LISTENER
Hover listener property- Since:
- ITP 1.3.0
- See Also:
-
-
Constructor Details
-
TabAreaComponentsProperties
public TabAreaComponentsProperties()Constructs an empty TabAreaComponentsProperties object -
TabAreaComponentsProperties
Constructs a TabAreaComponentsProperties object with the given object as property storage- Parameters:
object
- object to store properties in
-
TabAreaComponentsProperties
Constructs a TabAreaComponentsProperties object that inherits its properties from the given TabAreaComponentsProperties object- Parameters:
inheritFrom
- TabAreaComponentsProperties 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
-
getStretchEnabled
public boolean getStretchEnabled()Gets if components should be stretched to same height as tabs if tabs are higher than components.- Returns:
- true if stretch is enabled, otherwise false
-
setStretchEnabled
Sets if components should be stretched to same height as tabs if tabs are higher than components.- Parameters:
enabled
- true for stretch, otherwise false- Returns:
- this TabAreaComponentsProperties
-
getComponentProperties
Gets the component properties- Returns:
- component properties
-
getShapedPanelProperties
Gets the shaped panel properties- Returns:
- shaped panel properties
- Since:
- ITP 1.2.0
-
setHoverListener
Sets the hover listener that will be triggered when the tab area components area is hoverd by the mouse.
The tabbed panel that the hovered tab area components area is part of will be the source of the hover event sent to the hover listener.
- Parameters:
listener
- the hover listener- Returns:
- this TabAreaComponentsProperties
- Since:
- ITP 1.3.0
-
getHoverListener
Gets the hover listener that will be triggered when the tab area components area is hovered by the mouse.
The tabbed panel that the hovered tab area components area is part of will be the source of the hover event sent to the hover listener.
- Returns:
- the hover listener
- Since:
- ITP 1.3.0
-