public class SkinLookAndFeel
extends javax.swing.plaf.basic.BasicLookAndFeel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VERSION
Deprecated.
Will be soon replaced by
version() |
| Constructor and Description |
|---|
SkinLookAndFeel()
Constructs a new SkinLookAndFeel
|
| Modifier and Type | Method and Description |
|---|---|
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
|
createAudioAction, getAudioActionMap, getDefaults, loadSystemColors, playSound, uninitializegetDesktopPropertyValue, getDisabledIcon, getDisabledSelectedIcon, getLayoutStyle, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, provideErrorFeedback, toString, uninstallBorderpublic static final java.lang.String VERSION
version()public static java.lang.String version()
public static java.lang.String date()
public java.lang.String getName()
getName in class javax.swing.LookAndFeelpublic java.lang.String getDescription()
getDescription in class javax.swing.LookAndFeelpublic java.lang.String getID()
getID in class javax.swing.LookAndFeelpublic boolean isNativeLookAndFeel()
isNativeLookAndFeel in class javax.swing.LookAndFeelpublic boolean getSupportsWindowDecorations()
getSupportsWindowDecorations in class javax.swing.LookAndFeelpublic boolean isSupportedLookAndFeel()
isSupportedLookAndFeel in class javax.swing.LookAndFeelprotected void initClassDefaults(javax.swing.UIDefaults table)
initClassDefaults in class javax.swing.plaf.basic.BasicLookAndFeeltable - Description of Parameterprotected void initSystemColorDefaults(javax.swing.UIDefaults table)
initSystemColorDefaults in class javax.swing.plaf.basic.BasicLookAndFeeltable - Description of Parameterprotected void initComponentDefaults(javax.swing.UIDefaults table)
initComponentDefaults in class javax.swing.plaf.basic.BasicLookAndFeeltable - Description of Parameterpublic void initialize()
initialize in class javax.swing.plaf.basic.BasicLookAndFeelpublic 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.UnsupportedLookAndFeelExceptionpublic static Skin loadSkin(java.lang.String filename) throws java.lang.Exception
filename - the given filenamejava.lang.Exception - Description of Exceptionpublic static Skin loadSkin(java.net.URL url) throws java.lang.Exception
url - Description of Parameterjava.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 filenamejava.lang.Exception - Description of Exceptionpublic static Skin loadThemePack(java.net.URL url) throws java.lang.Exception
url - the theme pack urljava.lang.Exception - Description of ExceptionZipResourceLoaderpublic static Skin loadThemePack(java.io.InputStream streamToPack) throws java.lang.Exception
streamToPack - stream to the themepackjava.lang.ExceptionZipResourceLoaderpublic static Skin loadThemePackDefinition(java.net.URL url) throws java.lang.Exception
url - the theme pack definition urljava.lang.Exception - Description of Exceptionpublic static void checkRequiredVersion(java.lang.String required)
throws IncorrectVersionException
required - Description of ParameterIncorrectVersionException