|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.properties.propertymap.PropertyMapContainer
net.infonode.tabbedpanel.titledtab.TitledTabProperties
public class TitledTabProperties
TitledTabProperties holds all properties for a TitledTab
.
A titled tab can have three states, normal, highlighted and disabled. Each state is represented by a TitledTabStateProperties
object containing all properties that can be set for a state.
By default the property values in the highlighted and disabled state are references to corresponding values in the normal state. This means that if you set a property value in the normal state, then highlighted and the disabled state will use that property value if the property has not been set in the highlighted or disabled state.
Example:
Setting the background color in the normal state means that normal, highlighted and disabled state will
use that color as background color. If you set background color for highlighted state, then the highlighted state
will use that color regardless of the background color for the normal state.
By default the tool tip text in all states is the same as the tab text in the normal state. For example, if you
change the tab text in the highlighted state and want the tooltip to display the same text, you must set the "Tool
Tip Text" property TitledTabStateProperties.TOOL_TIP_TEXT
in the highlighted state.
TitledTab
,
TitledTabStateProperties
Field Summary | |
---|---|
static TitledTabBorderSizePolicyProperty |
BORDER_SIZE_POLICY
Border size policy property |
private static TitledTabProperties |
DEFAULT_VALUES
|
static PropertyMapProperty |
DISABLED_PROPERTIES
Disabled state properties |
static BooleanProperty |
ENABLED
TitledTab enabled property |
static BooleanProperty |
FOCUS_MARKER_ENABLED
Focus Marker Enabled property |
static BooleanProperty |
FOCUSABLE
Focusabled property |
static PropertyMapProperty |
HIGHLIGHTED_PROPERTIES
Highlighted state properties |
static IntegerProperty |
HIGHLIGHTED_RAISED_AMOUNT
Highlighted raised amount property |
static HoverListenerProperty |
HOVER_LISTENER
Hover listener property |
static DimensionProviderProperty |
MINIMUM_SIZE_PROVIDER
Tab minimum size property |
static PropertyMapProperty |
NORMAL_PROPERTIES
Normal state properties |
static PropertyMapGroup |
PROPERTIES
A property group for all properties in TitledTabProperties |
static TitledTabSizePolicyProperty |
SIZE_POLICY
Size policy property |
Constructor Summary | |
---|---|
TitledTabProperties()
Constructs an empty TitledTabProperties object |
|
TitledTabProperties(PropertyMap object)
Constructs a TitledTabProperties object with the give object as property storage |
|
TitledTabProperties(TitledTabProperties inheritFrom)
Constructs a TitledTabProperties object that inherits its properties from the given TitledTabProperties object |
Method Summary | |
---|---|
TitledTabProperties |
addSuperObject(TitledTabProperties superObject)
Adds a super object from which property values are inherited. |
TitledTabBorderSizePolicy |
getBorderSizePolicy()
Gets the border size policy for this TitledTab |
static TitledTabProperties |
getDefaultProperties()
Creates a properties object with default properties based on the current look and feel |
TitledTabStateProperties |
getDisabledProperties()
Gets the properties for the disabled state |
boolean |
getEnabled()
Gets if this TitledTab is enabled or disabled |
boolean |
getFocusable()
Gets if this TitledTab is focusable |
boolean |
getFocusMarkerEnabled()
Gets if this TitledTab should show its built-in focus marker when this tab has focus. |
TitledTabStateProperties |
getHighlightedProperties()
Gets the properties for the highlighted state |
int |
getHighlightedRaised()
Gets how many pixels higher this TitledTab will be when it is in its highlighted state compared to its normal and disabled state |
HoverListener |
getHoverListener()
Gets the hover listener that will be triggered when the tab is hovered by the mouse. |
DimensionProvider |
getMinimumSizeProvider()
Gets the dimension provider for the tab's minimum size |
TitledTabStateProperties |
getNormalProperties()
Gets the properties for the normal state |
TitledTabSizePolicy |
getSizePolicy()
Gets the size policy for this TitledTab |
TitledTabProperties |
removeSuperObject()
Removes the last added super object. |
TitledTabProperties |
removeSuperObject(TitledTabProperties superObject)
Removes the given super object. |
TitledTabProperties |
replaceSuperObject(TitledTabProperties oldSuperObject,
TitledTabProperties newSuperObject)
Replaces the given super objects. |
TitledTabProperties |
setBorderSizePolicy(TitledTabBorderSizePolicy sizePolicy)
Sets the border size policy for this TitledTab |
TitledTabProperties |
setEnabled(boolean value)
Sets if this TitledTab should be enabled or not. |
TitledTabProperties |
setFocusable(boolean value)
Sets if this TitledTab should be focusable |
TitledTabProperties |
setFocusMarkerEnabled(boolean value)
Sets if this TitledTab should show its built-in focus marker when this tab has focus. |
TitledTabProperties |
setHighlightedRaised(int amount)
Sets how many pixels higher this TitledTab will be when it is in its highlighted state compared to its normal and disabled state |
TitledTabProperties |
setHoverListener(HoverListener listener)
Sets the hover listener that will be triggered when the tab is hovered by the mouse. |
TitledTabProperties |
setMinimumSizeProvider(DimensionProvider size)
Sets the tab's minimum size dimension provider |
TitledTabProperties |
setSizePolicy(TitledTabSizePolicy sizePolicy)
Sets the size policy for this TitledTab |
private static void |
updateFunctionalProperties()
|
private static void |
updateVisualProperties()
|
Methods inherited from class net.infonode.properties.propertymap.PropertyMapContainer |
---|
getMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PropertyMapGroup PROPERTIES
public static final BooleanProperty FOCUSABLE
setFocusable(boolean)
,
getFocusable()
public static final BooleanProperty FOCUS_MARKER_ENABLED
setFocusMarkerEnabled(boolean)
,
getFocusMarkerEnabled()
public static final PropertyMapProperty NORMAL_PROPERTIES
getNormalProperties()
public static final PropertyMapProperty HIGHLIGHTED_PROPERTIES
getHighlightedProperties()
public static final PropertyMapProperty DISABLED_PROPERTIES
getDisabledProperties()
public static final TitledTabSizePolicyProperty SIZE_POLICY
setSizePolicy(net.infonode.tabbedpanel.titledtab.TitledTabSizePolicy)
,
getSizePolicy()
public static final TitledTabBorderSizePolicyProperty BORDER_SIZE_POLICY
setBorderSizePolicy(net.infonode.tabbedpanel.titledtab.TitledTabBorderSizePolicy)
,
getBorderSizePolicy()
public static final DimensionProviderProperty MINIMUM_SIZE_PROVIDER
setMinimumSizeProvider(DimensionProvider)
,
getMinimumSizeProvider()
public static final IntegerProperty HIGHLIGHTED_RAISED_AMOUNT
setHighlightedRaised(int)
,
getHighlightedRaised()
public static final HoverListenerProperty HOVER_LISTENER
setHoverListener(net.infonode.gui.hover.HoverListener)
,
getHoverListener()
public static final BooleanProperty ENABLED
setEnabled(boolean)
,
getEnabled()
private static final TitledTabProperties DEFAULT_VALUES
Constructor Detail |
---|
public TitledTabProperties()
public TitledTabProperties(PropertyMap object)
object
- object to store properties inpublic TitledTabProperties(TitledTabProperties inheritFrom)
inheritFrom
- TitledTabProperties object to inherit properties fromMethod Detail |
---|
public TitledTabProperties addSuperObject(TitledTabProperties superObject)
superObject
- the object from which to inherit property values
public TitledTabProperties removeSuperObject()
public TitledTabProperties removeSuperObject(TitledTabProperties superObject)
superObject
- super object to remove
public TitledTabProperties replaceSuperObject(TitledTabProperties oldSuperObject, TitledTabProperties newSuperObject)
oldSuperObject
- super object to replacenewSuperObject
- new super object
public static TitledTabProperties getDefaultProperties()
public TitledTabStateProperties getNormalProperties()
public TitledTabStateProperties getHighlightedProperties()
public TitledTabStateProperties getDisabledProperties()
public TitledTabProperties setFocusable(boolean value)
value
- true for focusable, otherwise false
public boolean getFocusable()
public TitledTabProperties setFocusMarkerEnabled(boolean value)
Sets if this TitledTab should show its built-in focus marker when this tab has focus.
Note: Disabling the focus marker is useful when for example creating a theme that draws its own focus marker.
value
- true for enabled, otherwise false
public boolean getFocusMarkerEnabled()
Gets if this TitledTab should show its built-in focus marker when this tab has focus.
Note: Disabling the focus marker is useful when for example creating a theme that draws its own focus marker.
public TitledTabProperties setSizePolicy(TitledTabSizePolicy sizePolicy)
sizePolicy
- the size policy
public TitledTabSizePolicy getSizePolicy()
public TitledTabProperties setBorderSizePolicy(TitledTabBorderSizePolicy sizePolicy)
sizePolicy
- the border size policy
public TitledTabBorderSizePolicy getBorderSizePolicy()
public TitledTabProperties setMinimumSizeProvider(DimensionProvider size)
size
- the minimum size dimension provider or null if tab's default minimum size should be used instead
public DimensionProvider getMinimumSizeProvider()
public TitledTabProperties setHighlightedRaised(int amount)
amount
- number of pixels
public int getHighlightedRaised()
public TitledTabProperties setEnabled(boolean value)
Sets if this TitledTab should be enabled or not.
Note: Calling TitledTab.setEnabled(boolean)
will modify this property for the tab.
value
- true for enabled, otherwise false
public boolean getEnabled()
public TitledTabProperties setHoverListener(HoverListener listener)
Sets the hover listener that will be triggered when the tab is hovered by the mouse.
The hovered titled tab will be the source of the hover event sent to the hover listener.
listener
- the hover listener
public HoverListener getHoverListener()
Gets the hover listener that will be triggered when the tab is hovered by the mouse.
The hovered titled tab will be the source of the hover event sent to the hover listener.
private static void updateVisualProperties()
private static void updateFunctionalProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |