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.


Constructor Index

 o AbstractLookAndFeel()

Method Index

 o getDefaults()
This method is called once by UIManger.setLookAndFeel to create the look and feel specific defaults table.
 o getDescription()
Return a one line description of this look and feel implementation, e.g.
 o getName()
Return a short string that identifies this look and feel, e.g.
 o initialize()
UIManger.setLookAndFeel calls this method before the first call (and typically the only call) to getDefaults().
 o isNativeLookAndFeel()
If the underlying platform has a "native" look and feel, and this is an implementation of it, return true.
 o isSupportedLookAndFeel()
Return true if the underlying platform supports and or permits this look and feel.
 o toString()
Returns a string representation of the object.
 o uninitialize()
UIManger.setLookAndFeel calls this method just before we're replaced by a new default look and feel.

Constructors

 o AbstractLookAndFeel
public AbstractLookAndFeel()

Methods

 o getName
public abstract String getName()
Return a short string that identifies this look and feel, e.g. "CDE/Motif".

 o getDescription
public abstract String getDescription()
Return a one line description of this look and feel implementation, e.g. "The CDE/Motif Look and Feel".

 o 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.

 o 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
 o 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
 o 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
 o 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
 o 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