java.lang.Object
org.jext.gui.Skin
- Direct Known Subclasses:
- BundledSkinFactory.JextSkin, BundledSkinFactory.MetalSkin, GenericSkin
- public abstract class Skin
- extends java.lang.Object
This is the generic Skin base class. Override it to provide a new skin.
|
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 |
Skin
public Skin()
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.
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.