Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.LookAndFeel
Method Summary | |
UIDefaults | getDefaults()
This method is called once by UIManager.setLookAndFeel to create the look and feel specific defaults table. |
java.lang.String | getDescription()
Return a one line description of this look and feel implementation, e.g. |
java.lang.String | getID()
Return a string that identifies this look and feel. |
java.lang.String | getName()
Return a short string that identifies this look and feel, e.g. |
void | initialize()
UIManager.setLookAndFeel calls this method before the first call (and typically the only call) to getDefaults(). |
static void | installBorder(JComponent c,
java.lang.String defaultBorderName)
Convenience method for installing a component's default Border object on the specified component if either the border is currently null or already an instance of UIResource. |
static void | installColorsAndFont(JComponent c,
java.lang.String defaultBgName,
java.lang.String defaultFgName,
java.lang.String defaultFontName)
Convenience method for initializing a components foreground background and font properties with values from the current defaults table. |
static void | installColors(JComponent c,
java.lang.String defaultBgName,
java.lang.String defaultFgName)
Convenience method for initializing a component's foreground and background color properties with values from the current defaults table. |
boolean | isNativeLookAndFeel()
If the underlying platform has a "native" look and feel, and this is an implementation of it, return true. |
boolean | isSupportedLookAndFeel()
Return true if the underlying platform supports and or permits this look and feel. |
static java.lang.Object | makeIcon(java.lang.Class baseClass,
java.lang.String gifFile)
Utility method that creates a UIDefaults. |
java.lang.String | toString()
|
void | uninitialize()
UIManager.setLookAndFeel calls this method just before we're replaced by a new default look and feel. |
static void | uninstallBorder(JComponent c)
Convenience method for un-installing a component's default border on the specified component if the border is currently an instance of UIResource. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Method Detail |
public static void installColors(JComponent c, java.lang.String defaultBgName, java.lang.String defaultFgName)
c
- the target component for installing default color/font properties
defaultBgName
- the key for the default background
defaultFgName
- the key for the default foregroundpublic static void installColorsAndFont(JComponent c, java.lang.String defaultBgName, java.lang.String defaultFgName, java.lang.String defaultFontName)
c
- the target component for installing default color/font properties
defaultBgName
- the key for the default background
defaultFgName
- the key for the default foreground
defaultFontName
- the key for the default fontpublic static void installBorder(JComponent c, java.lang.String defaultBorderName)
c
- the target component for installing default border
defaultBorderName
- the key specifying the default borderpublic static void uninstallBorder(JComponent c)
c
- the target component for uninstalling default borderpublic static java.lang.Object makeIcon(java.lang.Class baseClass, java.lang.String gifFile)
gifFile
filename.public abstract java.lang.String getName()
public abstract java.lang.String getID()
public abstract java.lang.String getDescription()
public abstract boolean isNativeLookAndFeel()
public abstract boolean isSupportedLookAndFeel()
public void initialize()
public void uninitialize()
public UIDefaults getDefaults()
public java.lang.String toString()
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |