|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.LookAndFeel
javax.swing.plaf.basic.BasicLookAndFeel
com.l2fprod.gui.plaf.skin.SkinLookAndFeel
public class SkinLookAndFeel
Skin Look And Feel Main Class.
Use this class to set the current skin
or to load skins.
See L2FProd.com
website for the complete description of a theme pack.
Field Summary | |
---|---|
static java.lang.String |
VERSION
Deprecated. Will be soon replaced by version() |
Constructor Summary | |
---|---|
SkinLookAndFeel()
Constructs a new SkinLookAndFeel |
Method Summary | |
---|---|
static void |
checkRequiredVersion(java.lang.String required)
Description of the Method |
static java.lang.String |
date()
|
static void |
enable()
Deprecated. no longer needed |
java.lang.String |
getDescription()
Gets the Description attribute of the SkinLookAndFeel object |
java.lang.String |
getID()
Gets the ID attribute of the SkinLookAndFeel object |
java.lang.String |
getName()
Gets the Name attribute of the SkinLookAndFeel object |
static Skin |
getSkin()
Return the current skin. |
boolean |
getSupportsWindowDecorations()
|
protected void |
initClassDefaults(javax.swing.UIDefaults table)
Description of the Method |
protected void |
initComponentDefaults(javax.swing.UIDefaults table)
Description of the Method |
void |
initialize()
|
protected void |
initSystemColorDefaults(javax.swing.UIDefaults table)
Description of the Method |
boolean |
isNativeLookAndFeel()
Gets the NativeLookAndFeel attribute of the SkinLookAndFeel object |
boolean |
isSupportedLookAndFeel()
Gets the SupportedLookAndFeel attribute of the SkinLookAndFeel object |
static Skin |
loadDefaultThemePack()
Load the default theme pack. |
static Skin |
loadSkin(java.lang.String filename)
Load a skin from the given filename. |
static Skin |
loadSkin(java.net.URL url)
Load a skin from the given url. |
static Skin |
loadThemePack(java.io.InputStream streamToPack)
Load a Theme Pack from the given stream pointing to a themepack. |
static Skin |
loadThemePack(java.lang.String filename)
Load a Theme Pack from the given zip file. |
static Skin |
loadThemePack(java.net.URL url)
Load a Theme Pack from the given zip url. |
static Skin |
loadThemePackDefinition(java.net.URL url)
Load a Theme Pack from the given theme pack definition. |
static void |
setSkin(Skin skin)
Set the skin used by the Skin Look And Feel |
static java.lang.String |
version()
Returns the Skin Look And Feel version |
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel |
---|
createAudioAction, getAudioActionMap, getDefaults, loadSystemColors, playSound, uninitialize |
Methods inherited from class javax.swing.LookAndFeel |
---|
getDesktopPropertyValue, getDisabledIcon, getDisabledSelectedIcon, getLayoutStyle, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, provideErrorFeedback, toString, uninstallBorder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSION
version()
Constructor Detail |
---|
public SkinLookAndFeel()
Method Detail |
---|
public static java.lang.String version()
public static java.lang.String date()
public java.lang.String getName()
getName
in class javax.swing.LookAndFeel
public java.lang.String getDescription()
getDescription
in class javax.swing.LookAndFeel
public java.lang.String getID()
getID
in class javax.swing.LookAndFeel
public boolean isNativeLookAndFeel()
isNativeLookAndFeel
in class javax.swing.LookAndFeel
public boolean getSupportsWindowDecorations()
getSupportsWindowDecorations
in class javax.swing.LookAndFeel
public boolean isSupportedLookAndFeel()
isSupportedLookAndFeel
in class javax.swing.LookAndFeel
protected void initClassDefaults(javax.swing.UIDefaults table)
initClassDefaults
in class javax.swing.plaf.basic.BasicLookAndFeel
table
- Description of Parameterprotected void initSystemColorDefaults(javax.swing.UIDefaults table)
initSystemColorDefaults
in class javax.swing.plaf.basic.BasicLookAndFeel
table
- Description of Parameterprotected void initComponentDefaults(javax.swing.UIDefaults table)
initComponentDefaults
in class javax.swing.plaf.basic.BasicLookAndFeel
table
- Description of Parameterpublic void initialize()
initialize
in class javax.swing.plaf.basic.BasicLookAndFeel
public static void setSkin(Skin skin)
skin
- a skinpublic static Skin getSkin()
-Dskinlf.themepack=
path-to-themepack
or using System.getProperties().put("skinlf.themepack", path)
public static void enable() throws javax.swing.UnsupportedLookAndFeelException
javax.swing.UnsupportedLookAndFeelException
public static Skin loadSkin(java.lang.String filename) throws java.lang.Exception
filename
- the given filename
java.lang.Exception
- Description of Exceptionpublic static Skin loadSkin(java.net.URL url) throws java.lang.Exception
url
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic static Skin loadDefaultThemePack() throws java.lang.Exception
skinlf-themepack.xml
in the user
classpath (using SkinLookAndFeel.class.getResource("/skinlf-themepack.xml")
).
java.lang.Exception
- Description of Exceptionpublic static Skin loadThemePack(java.lang.String filename) throws java.lang.Exception
filename
- the theme pack filename
java.lang.Exception
- Description of Exceptionpublic static Skin loadThemePack(java.net.URL url) throws java.lang.Exception
url
- the theme pack url
java.lang.Exception
- Description of ExceptionZipResourceLoader
public static Skin loadThemePack(java.io.InputStream streamToPack) throws java.lang.Exception
streamToPack
- stream to the themepack
java.lang.Exception
ZipResourceLoader
public static Skin loadThemePackDefinition(java.net.URL url) throws java.lang.Exception
url
- the theme pack definition url
java.lang.Exception
- Description of Exceptionpublic static void checkRequiredVersion(java.lang.String required) throws IncorrectVersionException
required
- Description of Parameter
IncorrectVersionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |