All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.AbstractLookAndFeel
java.lang.Object
|
+----java.awt.swing.AbstractLookAndFeel
- public abstract class AbstractLookAndFeel
- extends Object
Completely characterizes a look and feel from the point of view
of the pluggable look and feel components.
AbstractLookAndFeel()
-
getDefaults()
- This method is called once by UIManger.setLookAndFeel to create
the look and feel specific defaults table.
getDescription()
- Return a one line description of this look and feel implementation,
e.g.
getName()
- Return a short string that identifies this look and feel, e.g.
initialize()
- UIManger.setLookAndFeel calls this method before the first
call (and typically the only call) to getDefaults().
isNativeLookAndFeel()
- If the underlying platform has a "native" look and feel, and this
is an implementation of it, return true.
isSupportedLookAndFeel()
- Return true if the underlying platform supports and or permits
this look and feel.
toString()
- Returns a string representation of the object.
uninitialize()
- UIManger.setLookAndFeel calls this method just before we're
replaced by a new default look and feel.
AbstractLookAndFeel
public AbstractLookAndFeel()
getName
public abstract String getName()
- Return a short string that identifies this look and feel, e.g.
"CDE/Motif".
getDescription
public abstract String getDescription()
- Return a one line description of this look and feel implementation,
e.g. "The CDE/Motif Look and Feel".
isNativeLookAndFeel
public abstract boolean isNativeLookAndFeel()
- If the underlying platform has a "native" look and feel, and this
is an implementation of it, return true. For example a CDE/Motif
look and implementation would return true when the underlying
platform was Solaris.
isSupportedLookAndFeel
public abstract boolean isSupportedLookAndFeel()
- Return true if the underlying platform supports and or permits
this look and feel. This method returns false if the look
and feel depends on special resources or legal agreements that
aren't defined for the current platform.
- See Also:
- setLookAndFeel
initialize
public void initialize()
- UIManger.setLookAndFeel calls this method before the first
call (and typically the only call) to getDefaults(). Subclasses
should do any one-time setup they need here, rather than
in a static initializer, because look and feel class objects
may be loaded just to discover that isSupportedLookAndFeel()
returns false.
- See Also:
- uninitialize, setLookAndFeel
uninitialize
public void uninitialize()
- UIManger.setLookAndFeel calls this method just before we're
replaced by a new default look and feel. Subclasses may
choose to free up some resources here.
- See Also:
- initialize
getDefaults
public UIDefaults getDefaults()
- This method is called once by UIManger.setLookAndFeel to create
the look and feel specific defaults table. Other applications,
for example an application builder, may also call this method.
- See Also:
- initialize, uninitialize, setLookAndFeel
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature