org.jext.gui
Class Skin

java.lang.Object
  extended by org.jext.gui.Skin
Direct Known Subclasses:
GenericSkin

public abstract class Skin
extends java.lang.Object

This is the generic Skin base class. Override it to provide a new skin.

Author:
BlaisorBlade

Constructor Summary
Skin()
           
 
Method Summary
abstract  void apply()
          It must actually apply the Skin; to indicate errors it will throw any sort of exception.
abstract  java.lang.String getSkinInternName()
          The internal name of the skin, used to identify it; it mustn't be translated.
abstract  java.lang.String getSkinName()
          The name to show inside the option dialog; this should be get using a Jext property with Jext.getProperty.
 boolean isAvailable()
          If your skin is not available in certain cases, override this; it could even call the LookAndFeel.isAvailable method.
 void unapply()
          You can override this to execute code when this skin is replaced by another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Skin

public Skin()
Method Detail

apply

public abstract void apply()
                    throws java.lang.Throwable
It must actually apply the Skin; to indicate errors it will throw any sort of exception. Tipically it will include a call to UIManager.setLookAndFeel to apply actual LookAndFeel object.

Throws:
java.lang.Throwable

getSkinName

public abstract java.lang.String getSkinName()
The name to show inside the option dialog; this should be get using a Jext property with Jext.getProperty.


getSkinInternName

public abstract java.lang.String getSkinInternName()
The internal name of the skin, used to identify it; it mustn't be translated.


isAvailable

public boolean isAvailable()
If your skin is not available in certain cases, override this; it could even call the LookAndFeel.isAvailable method. (But you shouldn't since LookAndFeel creation is expensive).


unapply

public void unapply()
             throws java.lang.Throwable
You can override this to execute code when this skin is replaced by another.

Throws:
java.lang.Throwable


Copyright ? 2002 Romain Guy.