Additional top-level class in compilation unit: MultiUIDefaults.
A multiplexing look and feel that allows more than one UI to be associated with a component at the same time. The primary look and feel is called the default look and feel, and the other look and feels are called auxiliary.
For further information, see Using the Multiplexing Look and Feel.
Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans
package.
Please see java.
.
UIManager#addAuxiliaryLookAndFeel
, javax.swing.plaf.multi
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public static ComponentUI | Returns: mui if the component has any auxiliary UI objects;
otherwise, returns the UI object for the default look and feel
or null if the default UI object couldn't be foundthe mui, Vector<ComponentUI> ComponentUI object
that represents the complete UI
for the target component;
this should be an instance
of one of the MultiXxxxUI classesa uis, JComponent Vector ;
generally this is the uis field
of the mui argumenta component whose UI is represented by target)mui Creates the |
public UIDefaults | Returns: an initializedUIDefaults objectOverrides javax. |
public String | Returns: a descriptive string such as "Allows multiple UI instances per component instance"Implements abstract javax. |
public String | Returns: "Multiplex"Implements abstract javax. |
public String | Returns: a string such as "Multiplexing Look and Feel"Implements abstract javax. |
public boolean | Returns: false Implements abstract javax. false ;
this look and feel is not native to any platform.
|
public boolean | Returns: true Implements abstract javax. true ;
every platform permits this look and feel.
|
protected static ComponentUI[] | Returns: an array equivalent to the passed-in vectora vector containing uis)ComponentUI objectsCreates an array, populates it with UI objects from the passed-in vector, and returns the array. |
MultiLookAndFeel | back to summary |
---|---|
public MultiLookAndFeel() Constructs a |
createUIs | back to summary |
---|---|
public static ComponentUI createUIs(ComponentUI mui, Vector<ComponentUI> uis, JComponent target) Creates the
This method is invoked by the
|
getDefaults | back to summary |
---|---|
public UIDefaults getDefaults() Overrides javax. Creates, initializes, and returns
the look and feel specific defaults.
For this look and feel,
the defaults consist solely of
mappings of UI class IDs
(such as "ButtonUI")
to
|
getDescription | back to summary |
---|---|
public String getDescription() Implements abstract javax. Returns a one-line description of this look and feel.
|
getID | back to summary |
---|---|
public String getID() Implements abstract javax. Returns a string, suitable for use by applications/services, that identifies this look and feel.
|
getName | back to summary |
---|---|
public String getName() Implements abstract javax. Returns a string, suitable for use in menus, that identifies this look and feel.
|
isNativeLookAndFeel | back to summary |
---|---|
public boolean isNativeLookAndFeel() Implements abstract javax. Returns
|
isSupportedLookAndFeel | back to summary |
---|---|
public boolean isSupportedLookAndFeel() Implements abstract javax. Returns
|
uisToArray | back to summary |
---|---|
protected static ComponentUI[] uisToArray(Vector<? extends ComponentUI> uis) Creates an array,
populates it with UI objects from the passed-in vector,
and returns the array.
If
|