com.l2fprod.gui.plaf.skin
Class CompoundSkin

java.lang.Object
  extended by com.l2fprod.gui.plaf.skin.impl.AbstractSkin
      extended by 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 $

Field Summary
 
Fields inherited from class com.l2fprod.gui.plaf.skin.impl.AbstractSkin
button, frame, personality, progress, resources, scrollbar, separator, slider, splitpane, tab
 
Constructor Summary
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
protected  void addColors(java.lang.String[] colors, java.util.Vector v)
          Adds a feature to the Colors attribute of the CompoundSkin object
 java.lang.String[] getColors()
          Gets the Colors attribute of the CompoundSkin object
 java.lang.Object getResource(java.lang.Object key)
          Gets the Resource attribute of the CompoundSkin object
 void initComponentDefaults(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundSkin

public 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.

Parameters:
a - Description of Parameter
b - Description of Parameter
Method Detail

getColors

public java.lang.String[] getColors()
Gets the Colors attribute of the CompoundSkin object

Specified by:
getColors in interface Skin
Overrides:
getColors in class AbstractSkin
Returns:
The Colors value

getResource

public java.lang.Object getResource(java.lang.Object key)
Gets the Resource attribute of the CompoundSkin object

Specified by:
getResource in interface Skin
Overrides:
getResource in class AbstractSkin
Parameters:
key - Description of Parameter
Returns:
The Resource value

initComponentDefaults

public void initComponentDefaults(javax.swing.UIDefaults table)
Specified by:
initComponentDefaults in interface Skin
Overrides:
initComponentDefaults in class AbstractSkin

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 attribute
v - The feature to be added to the Colors attribute