public class GenericSkin extends Skin
Modifier and Type | Field and Description |
---|---|
protected javax.swing.LookAndFeel |
laf |
protected java.lang.String |
lafClassName |
protected java.lang.ClassLoader |
skLoader |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected java.lang.String lafClassName
protected javax.swing.LookAndFeel laf
protected java.lang.ClassLoader skLoader
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)
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
Copyright ? 2002 Romain Guy.