javax.swing.plaf.multi
Class MultiLookAndFeel

java.lang.Object
  extended by javax.swing.LookAndFeel
      extended by javax.swing.plaf.multi.MultiLookAndFeel

public class MultiLookAndFeel
extends LookAndFeel

A look and feel that provides the ability to use auxiliary look and feels in addition to the primary look and feel.


Constructor Summary
MultiLookAndFeel()
          Creates a new instance of the look and feel.
 
Method Summary
static ComponentUI createUIs(ComponentUI mui, Vector uis, JComponent target)
          Creates the UI delegates for the target component and returns a multiplexing UI delegate (mui) if there are multiple delegates.
 UIDefaults getDefaults()
          Creates and returns the UI defaults for this look and feel.
 String getDescription()
          Returns a description of the look and feel.
 String getID()
          Returns an identifier for the look and feel.
 String getName()
          Returns the name for the look and feel.
 boolean isNativeLookAndFeel()
          Returns false to indicate that this look and feel is not native to any platform.
 boolean isSupportedLookAndFeel()
          Returns true always, since this look and feel is supported on all platforms.
protected static ComponentUI[] uisToArray(Vector uis)
          Returns an array containing the same ComponentUI instances as uis.
 
Methods inherited from class javax.swing.LookAndFeel
getDesktopPropertyValue, getSupportsWindowDecorations, initialize, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, provideErrorFeedback, toString, uninitialize, uninstallBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiLookAndFeel

public MultiLookAndFeel()
Creates a new instance of the look and feel.

Method Detail

getName

public String getName()
Returns the name for the look and feel.

Specified by:
getName in class LookAndFeel
Returns:
"Multiplexing Look and Feel".

getID

public String getID()
Returns an identifier for the look and feel.

Specified by:
getID in class LookAndFeel
Returns:
"Multiplex".

getDescription

public String getDescription()
Returns a description of the look and feel.

Specified by:
getDescription in class LookAndFeel
Returns:
A description of the look and feel.

isNativeLookAndFeel

public boolean isNativeLookAndFeel()
Returns false to indicate that this look and feel is not native to any platform.

Specified by:
isNativeLookAndFeel in class LookAndFeel
Returns:
false.

isSupportedLookAndFeel

public boolean isSupportedLookAndFeel()
Returns true always, since this look and feel is supported on all platforms.

Specified by:
isSupportedLookAndFeel in class LookAndFeel
Returns:
true.

getDefaults

public UIDefaults getDefaults()
Creates and returns the UI defaults for this look and feel.

Overrides:
getDefaults in class LookAndFeel
Returns:
The UI defaults.

createUIs

public static ComponentUI createUIs(ComponentUI mui,
                                    Vector uis,
                                    JComponent target)
Creates the UI delegates for the target component and returns a multiplexing UI delegate (mui) if there are multiple delegates.

Parameters:
mui - a multiplexing UI delegate appropriate for the component.
uis - a vector into which the UI delegates will be added.
target - the target component.
Returns:
A UI delegate.

uisToArray

protected static ComponentUI[] uisToArray(Vector uis)
Returns an array containing the same ComponentUI instances as uis. If uis is null, a zero-length array is returned.

Parameters:
uis - a list of ComponentUI references (null permitted).
Returns:
An array containing the same ComponentUI instances as uis, or null if uis is empty.