javax.swing.plaf.multi

Class 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 ComponentUIcreateUIs(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.
UIDefaultsgetDefaults()
Creates and returns the UI defaults for this look and feel.
StringgetDescription()
Returns a description of the look and feel.
StringgetID()
Returns an identifier for the look and feel.
StringgetName()
Returns the name for the look and feel.
booleanisNativeLookAndFeel()
Returns false to indicate that this look and feel is not native to any platform.
booleanisSupportedLookAndFeel()
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 {@link ComponentUI} instances as uis.

Constructor Detail

MultiLookAndFeel

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

Method Detail

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.

getDefaults

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

Returns: The UI defaults.

getDescription

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

Returns: A description of the look and feel.

getID

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

Returns: "Multiplex".

getName

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

Returns: "Multiplexing Look and Feel".

isNativeLookAndFeel

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

Returns: false.

isSupportedLookAndFeel

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

Returns: true.

uisToArray

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

Parameters: uis a list of {@link ComponentUI} references (null permitted).

Returns: An array containing the same {@link ComponentUI} instances as uis, or null if uis is empty.