All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----javax.swing.JComponent | +----javax.swing.JLabel | +----javax.swing.DefaultListCellRenderer | +----com.ibm.as400.ui.framework.java.ListItemCellRenderer
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.
ListItemCellRenderer
object.
public ListItemCellRenderer()
ListItemCellRenderer
object.
public Component getListCellRendererComponent(JList list, Object value, int index, boolean iss, boolean chf)
All Packages Class Hierarchy This Package Previous Next Index