Top Description Fields Constructors Methods
javax.swing.plaf.multi

public Class MultiListUI

extends ListUI
Class Inheritance
Imports
java.util.Vector, javax.swing.plaf.ListUI, .ComponentUI, javax.swing.JList, .JComponent, java.awt.Point, .Rectangle, .Graphics, .Dimension, javax.accessibility.Accessible

A multiplexing UI used to combine ListUIs.

This file was automatically generated by AutoMulti.

Author
Otto Multey

Field Summary

Modifier and TypeField and Description
protected Vector<ComponentUI>
uis

The vector containing the real UIs.

Constructor Summary

AccessConstructor and Description
public
MultiListUI()

Constructs a MultiListUI.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
contains
(JComponent
the component where the x,y location is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
a
,
int
the x coordinate of the point
b
,
int
the y coordinate of the point
c
)

Overrides javax.swing.plaf.ComponentUI.contains.

Invokes the contains method on each UI handled by this object.

public static ComponentUI

Returns:

the UI delegate created
createUI
(JComponent
the component to create the UI for
a
)

Hides javax.swing.plaf.ComponentUI.createUI.

Returns a multiplexing UI instance if any of the auxiliary LookAndFeels supports this UI.

public Accessible

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getAccessibleChild
(JComponent
a JComponent for which to get a child object
a
,
int
zero-based index of child
b
)

Overrides javax.swing.plaf.ComponentUI.getAccessibleChild.

Invokes the getAccessibleChild method on each UI handled by this object.

public int

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getAccessibleChildrenCount
(JComponent
JComponent for which to get count of accessible children
a
)

Overrides javax.swing.plaf.ComponentUI.getAccessibleChildrenCount.

Invokes the getAccessibleChildrenCount method on each UI handled by this object.

public Rectangle

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getCellBounds
(JList<?>
the list
a
,
int
the first index in the range
b
,
int
the second index in the range
c
)

Implements abstract javax.swing.plaf.ListUI.getCellBounds.

Invokes the getCellBounds method on each UI handled by this object.

public Dimension

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getMaximumSize
(JComponent
the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
a
)

Overrides javax.swing.plaf.ComponentUI.getMaximumSize.

Invokes the getMaximumSize method on each UI handled by this object.

public Dimension

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getMinimumSize
(JComponent
the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
a
)

Overrides javax.swing.plaf.ComponentUI.getMinimumSize.

Invokes the getMinimumSize method on each UI handled by this object.

public Dimension

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getPreferredSize
(JComponent
the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
a
)

Overrides javax.swing.plaf.ComponentUI.getPreferredSize.

Invokes the getPreferredSize method on each UI handled by this object.

public ComponentUI[]

Returns:

an array of the UI delegates
getUIs
()

Returns the list of UIs associated with this multiplexing UI.

public Point

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
indexToLocation
(JList<?>
the list
a
,
int
the cell index
b
)

Implements abstract javax.swing.plaf.ListUI.indexToLocation.

Invokes the indexToLocation method on each UI handled by this object.

public void
installUI(JComponent
the component where this UI delegate is being installed
a
)

Overrides javax.swing.plaf.ComponentUI.installUI.

Invokes the installUI method on each UI handled by this object.

public int

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
locationToIndex
(JList<?>
the list
a
,
Point
the coordinates of the point
b
)

Implements abstract javax.swing.plaf.ListUI.locationToIndex.

Invokes the locationToIndex method on each UI handled by this object.

public void
paint(Graphics
the Graphics context in which to paint
a
,
JComponent
the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
b
)

Overrides javax.swing.plaf.ComponentUI.paint.

Invokes the paint method on each UI handled by this object.

public void
uninstallUI(JComponent
the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
a
)

Overrides javax.swing.plaf.ComponentUI.uninstallUI.

Invokes the uninstallUI method on each UI handled by this object.

public void
update(Graphics
the Graphics context in which to paint
a
,
JComponent
the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
b
)

Overrides javax.swing.plaf.ComponentUI.update.

Invokes the update method on each UI handled by this object.

Field Detail

uisback to summary
protected Vector<ComponentUI> uis

The vector containing the real UIs. This is populated in the call to createUI, and can be obtained by calling the getUIs method. The first element is guaranteed to be the real UI obtained from the default look and feel.

Constructor Detail

MultiListUIback to summary
public MultiListUI()

Constructs a MultiListUI.

Method Detail

containsback to summary
public boolean contains(JComponent a, int b, int c)

Overrides javax.swing.plaf.ComponentUI.contains.

Invokes the contains method on each UI handled by this object.

Parameters
a:JComponent

Doc from javax.swing.plaf.ComponentUI.contains.

the component where the x,y location is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

b:int

Doc from javax.swing.plaf.ComponentUI.contains.

the x coordinate of the point

c:int

Doc from javax.swing.plaf.ComponentUI.contains.

the y coordinate of the point

Returns:boolean

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

createUIback to summary
public static ComponentUI createUI(JComponent a)

Hides javax.swing.plaf.ComponentUI.createUI.

Returns a multiplexing UI instance if any of the auxiliary LookAndFeels supports this UI. Otherwise, just returns the UI object obtained from the default LookAndFeel.

Parameters
a:JComponent

the component to create the UI for

Returns:ComponentUI

the UI delegate created

getAccessibleChildback to summary
public Accessible getAccessibleChild(JComponent a, int b)

Overrides javax.swing.plaf.ComponentUI.getAccessibleChild.

Invokes the getAccessibleChild method on each UI handled by this object.

Parameters
a:JComponent

Doc from javax.swing.plaf.ComponentUI.getAccessibleChild.

a JComponent for which to get a child object

b:int

Doc from javax.swing.plaf.ComponentUI.getAccessibleChild.

zero-based index of child

Returns:Accessible

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getAccessibleChildrenCountback to summary
public int getAccessibleChildrenCount(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getAccessibleChildrenCount.

Invokes the getAccessibleChildrenCount method on each UI handled by this object.

Parameters
a:JComponent

Doc from javax.swing.plaf.ComponentUI.getAccessibleChildrenCount.

JComponent for which to get count of accessible children

Returns:int

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getCellBoundsback to summary
public Rectangle getCellBounds(JList<?> a, int b, int c)

Implements abstract javax.swing.plaf.ListUI.getCellBounds.

Invokes the getCellBounds method on each UI handled by this object.

Parameters
a:JList<?>

Doc from javax.swing.plaf.ListUI.getCellBounds.

the list

b:int

Doc from javax.swing.plaf.ListUI.getCellBounds.

the first index in the range

c:int

Doc from javax.swing.plaf.ListUI.getCellBounds.

the second index in the range

Returns:Rectangle

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getMaximumSizeback to summary
public Dimension getMaximumSize(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getMaximumSize.

Invokes the getMaximumSize method on each UI handled by this object.

Parameters
a:JComponent

Doc from javax.swing.plaf.ComponentUI.getMaximumSize.

the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

Returns:Dimension

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getMinimumSizeback to summary
public Dimension getMinimumSize(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getMinimumSize.

Invokes the getMinimumSize method on each UI handled by this object.

Parameters
a:JComponent

Doc from javax.swing.plaf.ComponentUI.getMinimumSize.

the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

Returns:Dimension

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getPreferredSizeback to summary
public Dimension getPreferredSize(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getPreferredSize.

Invokes the getPreferredSize method on each UI handled by this object.

Parameters
a:JComponent

Doc from javax.swing.plaf.ComponentUI.getPreferredSize.

the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

Returns:Dimension

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getUIsback to summary
public ComponentUI[] getUIs()

Returns the list of UIs associated with this multiplexing UI. This allows processing of the UIs by an application aware of multiplexing UIs on components.

Returns:ComponentUI[]

an array of the UI delegates

indexToLocationback to summary
public Point indexToLocation(JList<?> a, int b)

Implements abstract javax.swing.plaf.ListUI.indexToLocation.

Invokes the indexToLocation method on each UI handled by this object.

Parameters
a:JList<?>

Doc from javax.swing.plaf.ListUI.indexToLocation.

the list

b:int

Doc from javax.swing.plaf.ListUI.indexToLocation.

the cell index

Returns:Point

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

installUIback to summary
public void installUI(JComponent a)

Overrides javax.swing.plaf.ComponentUI.installUI.

Invokes the installUI method on each UI handled by this object.

Parameters
a:JComponent

Doc from javax.swing.plaf.ComponentUI.installUI.

the component where this UI delegate is being installed

locationToIndexback to summary
public int locationToIndex(JList<?> a, Point b)

Implements abstract javax.swing.plaf.ListUI.locationToIndex.

Invokes the locationToIndex method on each UI handled by this object.

Parameters
a:JList<?>

Doc from javax.swing.plaf.ListUI.locationToIndex.

the list

b:Point

Doc from javax.swing.plaf.ListUI.locationToIndex.

the coordinates of the point

Returns:int

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

paintback to summary
public void paint(Graphics a, JComponent b)

Overrides javax.swing.plaf.ComponentUI.paint.

Invokes the paint method on each UI handled by this object.

Parameters
a:Graphics

Doc from javax.swing.plaf.ComponentUI.paint.

the Graphics context in which to paint

b:JComponent

Doc from javax.swing.plaf.ComponentUI.paint.

the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

uninstallUIback to summary
public void uninstallUI(JComponent a)

Overrides javax.swing.plaf.ComponentUI.uninstallUI.

Invokes the uninstallUI method on each UI handled by this object.

Parameters
a:JComponent

Doc from javax.swing.plaf.ComponentUI.uninstallUI.

the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

updateback to summary
public void update(Graphics a, JComponent b)

Overrides javax.swing.plaf.ComponentUI.update.

Invokes the update method on each UI handled by this object.

Parameters
a:Graphics

Doc from javax.swing.plaf.ComponentUI.update.

the Graphics context in which to paint

b:JComponent

Doc from javax.swing.plaf.ComponentUI.update.

the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components