|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
javax.swing.DefaultListCellRenderer
com.ibm.as400.ui.framework.java.ListItemCellRenderer
public class ListItemCellRenderer extends DefaultListCellRenderer
An extension of DefaultListCellRenderer that performs all the same
function as the base class, and additionally supports displaying icons
on items in lists if the items have an image associated with them. A cell
renderer class can be specified on the Renderer property of a List in the GUI Builder.
This will result in an object of the specified Renderer class being attached to the
the JList object created for this list. This renderer object will
be used to render all items in the list. Whenever an item in the list needs to be drawn,
a call will be made to the renderer object's getListCellRendererComponent method.
If a Renderer class is not specified in the Renderer property for a List in the GUI Builder, PanelManager
creates a ListItemCellRenderer object and attaches it to the list as the cell renderer.
To display an item in the list, this renderer will use the icon, icon positioning attributes, and
text from the ItemDescriptor associated with the cell being drawn.
DefaultListCellRenderer,
Serialized Form| Modifier and Type | Class and Description |
|---|
| Nested classes/interfaces inherited from class javax.swing.DefaultListCellRenderer |
|---|
DefaultListCellRenderer.UIResource |
| Nested classes/interfaces inherited from class javax.swing.JLabel |
|---|
JLabel.AccessibleJLabel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class javax.swing.DefaultListCellRenderer |
|---|
noFocusBorder |
| Fields inherited from class javax.swing.JLabel |
|---|
labelFor |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor and Description |
|---|
ListItemCellRenderer()
Constructs a ListItemCellRenderer object. |
| Modifier and Type | Method and Description |
|---|---|
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean iss,
boolean chf)
Sets up the Component to be used to render the cell. |
| Methods inherited from class javax.swing.DefaultListCellRenderer |
|---|
firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, invalidate, isOpaque, repaint, repaint, repaint, revalidate, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ListItemCellRenderer()
ListItemCellRenderer object.
| Method Detail |
|---|
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean iss,
boolean chf)
getListCellRendererComponent in interface ListCellRenderergetListCellRendererComponent in class DefaultListCellRendererlist - JList to which this cell belongsvalue - Object to displayindex - index of the cell in the listiss - Boolean indicating if the cell is selectedchf - Boolean indicating if the cell has focus
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||