Package com.l2fprod.gui.plaf.skin
Class CompoundSkin
java.lang.Object
com.l2fprod.gui.plaf.skin.impl.AbstractSkin
com.l2fprod.gui.plaf.skin.CompoundSkin
- All Implemented Interfaces:
Skin
Assembles two skins to create a new one.
This can be used to combine features from two skins.
This can be used to combine features from two skins.
- Version:
- $Revision: 1.4 $, $Date: 2005/11/19 09:16:31 $
- Author:
- $Author: l2fprod $
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCompoundSkin
(Skin a, Skin b) Construct a new Skin by merging two skins.
If a feature is missing in the first skin, the second skin is used. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds a feature to the Colors attribute of the CompoundSkin objectString[]
Gets the Colors attribute of the CompoundSkin objectgetResource
(Object key) Gets the Resource attribute of the CompoundSkin objectvoid
initComponentDefaults
(UIDefaults table) Methods inherited from class com.l2fprod.gui.plaf.skin.impl.AbstractSkin
getButton, getFrame, getPersonality, getProgress, getScrollbar, getSeparator, getSlider, getSplitPane, getTab, unload
-
Constructor Details
-
CompoundSkin
Construct a new Skin by merging two skins.
If a feature is missing in the first skin, the second skin is used.- Parameters:
a
- Description of Parameterb
- Description of Parameter
-
-
Method Details
-
getColors
Gets the Colors attribute of the CompoundSkin object- Specified by:
getColors
in interfaceSkin
- Overrides:
getColors
in classAbstractSkin
- Returns:
- The Colors value
-
getResource
Gets the Resource attribute of the CompoundSkin object- Specified by:
getResource
in interfaceSkin
- Overrides:
getResource
in classAbstractSkin
- Parameters:
key
- Description of Parameter- Returns:
- The Resource value
-
initComponentDefaults
- Specified by:
initComponentDefaults
in interfaceSkin
- Overrides:
initComponentDefaults
in classAbstractSkin
-
addColors
Adds a feature to the Colors attribute of the CompoundSkin object- Parameters:
colors
- The feature to be added to the Colors attributev
- The feature to be added to the Colors attribute
-