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
public final class CompoundSkin extends AbstractSkin
Assembles two skins to create a new one.
This can be used to combine features from two skins.- Version:
- $Revision: 1.4 $, $Date: 2005/11/19 09:16:31 $
- Author:
- $Author: l2fprod $
-
-
Constructor Summary
Constructors Constructor Description CompoundSkin(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddColors(java.lang.String[] colors, java.util.Vector v)Adds a feature to the Colors attribute of the CompoundSkin objectjava.lang.String[]getColors()Gets the Colors attribute of the CompoundSkin objectjava.lang.ObjectgetResource(java.lang.Object key)Gets the Resource attribute of the CompoundSkin objectvoidinitComponentDefaults(javax.swing.UIDefaults table)-
Methods inherited from class com.l2fprod.gui.plaf.skin.impl.AbstractSkin
getButton, getFrame, getPersonality, getProgress, getScrollbar, getSeparator, getSlider, getSplitPane, getTab, unload
-
-
-
-
Method Detail
-
getColors
public java.lang.String[] getColors()
Gets the Colors attribute of the CompoundSkin object- Specified by:
getColorsin interfaceSkin- Overrides:
getColorsin classAbstractSkin- Returns:
- The Colors value
-
getResource
public java.lang.Object getResource(java.lang.Object key)
Gets the Resource attribute of the CompoundSkin object- Specified by:
getResourcein interfaceSkin- Overrides:
getResourcein classAbstractSkin- Parameters:
key- Description of Parameter- Returns:
- The Resource value
-
initComponentDefaults
public void initComponentDefaults(javax.swing.UIDefaults table)
- Specified by:
initComponentDefaultsin interfaceSkin- Overrides:
initComponentDefaultsin classAbstractSkin
-
addColors
protected void addColors(java.lang.String[] colors, java.util.Vector v)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
-
-