|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jext.gui.Skin
org.jext.gui.GenericSkin
public class GenericSkin
This is a generic skin class which will be able to wrap most possible skin, actually the normal LookAndFeel's. If you need special processing, write your own Skin interface implementation or extend this one.
Field Summary | |
---|---|
protected javax.swing.LookAndFeel |
laf
|
protected java.lang.String |
lafClassName
|
protected java.lang.ClassLoader |
skLoader
|
Constructor Summary | |
---|---|
GenericSkin(java.lang.String name,
java.lang.String intName,
javax.swing.LookAndFeel laf)
Constructor; use it to provide the caption, the internal name and the built LookAndFeel instance (the same you would pass to UIManager.setLookAndFeel). |
|
GenericSkin(java.lang.String name,
java.lang.String intName,
javax.swing.LookAndFeel laf,
java.lang.ClassLoader cl)
Constructor; use it to provide the caption, the internal name and the built LookAndFeel instance (the same you would pass to UIManager.setLookAndFeel). |
|
GenericSkin(java.lang.String name,
java.lang.String intName,
java.lang.String lafClassName)
Constructor; use it to provide the caption, the internal name and the name of the class to use as LookAndFeel(the same you would pass to UIManager.setLookAndFeel). |
|
GenericSkin(java.lang.String name,
java.lang.String intName,
java.lang.String lafClassName,
java.lang.ClassLoader cl)
Constructor; use it to provide the caption, the internal name, the name of the class to use as LookAndFeel(the same you would pass to UIManager.setLookAndFeel) and the ClassLoader that will be used to load the LookAndFeel and related classes; useful especially if you write a plugin. |
Method Summary | |
---|---|
void |
apply()
This method applies the skin; if you have not called one of the constructors, it will fail silently. |
java.lang.String |
getSkinInternName()
The internal name of the skin, used to identify it; it mustn't be translated. |
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. |
Methods inherited from class org.jext.gui.Skin |
---|
unapply |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String lafClassName
protected javax.swing.LookAndFeel laf
protected java.lang.ClassLoader skLoader
Constructor Detail |
---|
public GenericSkin(java.lang.String name, java.lang.String intName, java.lang.String lafClassName)
public GenericSkin(java.lang.String name, java.lang.String intName, java.lang.String lafClassName, java.lang.ClassLoader cl)
public GenericSkin(java.lang.String name, java.lang.String intName, javax.swing.LookAndFeel laf)
public GenericSkin(java.lang.String name, java.lang.String intName, javax.swing.LookAndFeel laf, java.lang.ClassLoader cl)
Method Detail |
---|
public boolean isAvailable()
Skin
isAvailable
in class Skin
public java.lang.String getSkinName()
Skin
getSkinName
in class Skin
public java.lang.String getSkinInternName()
Skin
getSkinInternName
in class Skin
public void apply() throws java.lang.Throwable
apply
in class Skin
java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |