Package net.infonode.gui.colorprovider
Class UIManagerColorProvider
java.lang.Object
net.infonode.gui.colorprovider.AbstractColorProvider
net.infonode.gui.colorprovider.UIManagerColorProvider
- All Implemented Interfaces:
Serializable,ColorProvider
A
ColorProvider which returns a property color from the UIManager.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UIManagerColorProviderA provider for the 'control' color.static final UIManagerColorProviderA provider for the 'controlDkShadow' color.static final UIManagerColorProviderA provider for the 'Desktop.background' color.static final UIManagerColorProviderA provider for the 'TabbedPane.background' color.static final UIManagerColorProviderA provider for the 'TabbedPane.darkShadow' color.static final UIManagerColorProviderA provider for the 'TabbedPane.highlight' color.static final UIManagerColorProviderA provider for the 'TabbedPane.shadow' color. -
Constructor Summary
ConstructorsConstructorDescriptionUIManagerColorProvider(String propertyName) Constructor.UIManagerColorProvider(String propertyName, Color defaultColor) Constructor. -
Method Summary
Methods inherited from class net.infonode.gui.colorprovider.AbstractColorProvider
getColor
-
Field Details
-
CONTROL_COLOR
A provider for the 'control' color. -
CONTROL_DARK_SHADOW
A provider for the 'controlDkShadow' color. -
TABBED_PANE_HIGHLIGHT
A provider for the 'TabbedPane.highlight' color. -
TABBED_PANE_SHADOW
A provider for the 'TabbedPane.shadow' color. -
TABBED_PANE_DARK_SHADOW
A provider for the 'TabbedPane.darkShadow' color. -
TABBED_PANE_BACKGROUND
A provider for the 'TabbedPane.background' color. -
DESKTOP_BACKGROUND
A provider for the 'Desktop.background' color.
-
-
Constructor Details
-
UIManagerColorProvider
Constructor.- Parameters:
propertyName- the name of the property which value will be retrieved from theUIManager.
-
UIManagerColorProvider
Constructor.- Parameters:
propertyName- the name of the property which value will be retrieved from theUIManager.defaultColor- the color to be used if the specified color doesn't exist in the UIManager
-
-
Method Details
-
getColor
Description copied from interface:ColorProviderReturns the default color when no component is available.- Specified by:
getColorin interfaceColorProvider- Overrides:
getColorin classAbstractColorProvider- Returns:
- the default color when no component is available
-