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 Details

    • 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 Details

    • getColors

      public 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 Object getResource(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(UIDefaults table)
      Specified by:
      initComponentDefaults in interface Skin
      Overrides:
      initComponentDefaults in class AbstractSkin
    • addColors

      protected void addColors(String[] colors, 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