|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.michaelbaranov.microba.Microba
public class Microba
This class is used to initialize Microba library.
Constructor Summary | |
---|---|
Microba()
|
Method Summary | |
---|---|
static java.awt.Color |
getOverridenColor(java.lang.String colorConstant,
MicrobaComponent component)
Returns overriden color for given component in current Look&Feel. |
static java.awt.Color |
getOverridenColor(java.lang.String colorConstant,
MicrobaComponent component,
java.awt.Color defaultColor)
Returns overriden color for given component in current Look&Feel or a default value. |
static void |
init()
Initializes the library: installs L&F properties, sets up a L&F change listener. |
static void |
setColorOverrideMap(java.lang.String lookAndFeel,
java.util.Map overrides)
Sets per-Lokk&Feel map of color overrides. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Microba()
Method Detail |
---|
public static void init()
No need to call this method explicitly for desktop applications. You
should only call it in Applet.init()
. This will handle browser
refresh button correctly.
public static void setColorOverrideMap(java.lang.String lookAndFeel, java.util.Map overrides)
lookAndFeel
- look&feel IDoverrides
- keys in the map are String
constants, valuse are of
type Color
or of type String
(in this case,
Color
values are obtained via
UIManager.getColor(Object)
). May be null
.public static java.awt.Color getOverridenColor(java.lang.String colorConstant, MicrobaComponent component)
null
is returned.
colorConstant
- color constantcomponent
- component of the library
null
if not overridenpublic static java.awt.Color getOverridenColor(java.lang.String colorConstant, MicrobaComponent component, java.awt.Color defaultColor)
colorConstant
- color constantcomponent
- component of the librarydefaultColor
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |