|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.ui.themes.Themes
public final class Themes
The Themes API provides access to information about visual themes.
Method Summary | |
---|---|
static void |
addThemeListener(ThemeListener tl)
Adds a listener that will be notified when theme related events occur. |
static Theme |
getActiveTheme()
Returns the currently active theme. |
static boolean |
isThemed()
Returns true if themes are switched on. |
static void |
paintBackground(java.awt.Graphics g,
java.lang.String part,
java.lang.String state,
java.awt.Rectangle rect)
Utility to paint the background using a theme Painter. |
static void |
removeThemeListener(ThemeListener tl)
Removes a listener that was previously added using addThemeListener(ThemeListener) . |
static void |
setActiveTheme(Theme t)
Sets the currently active theme. |
static void |
setDefaultTheme(Theme t)
Sets the default theme. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addThemeListener(ThemeListener tl)
tl
- a listener for theme related events. Must not be null.public static void removeThemeListener(ThemeListener tl)
addThemeListener(ThemeListener)
.
tl
- a listener to remove.public static boolean isThemed()
public static Theme getActiveTheme()
public static void setActiveTheme(Theme t)
t
- the new theme. May be null.public static void setDefaultTheme(Theme t)
getActiveTheme()
if no theme is active.
t
- a default theme.public static void paintBackground(java.awt.Graphics g, java.lang.String part, java.lang.String state, java.awt.Rectangle rect)
g
- part
- state
- rect
-
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |