public class StatusIconCellRenderer extends AbstractCellRenderer implements ListCellRenderer, TableCellRenderer
Integer
or kiwi.util.IntegerHolder
; for values
of other types, the renderer displays nothing.Modifier and Type | Field and Description |
---|---|
private Icon[] |
icons |
private JLabel |
renderer |
Constructor and Description |
---|
StatusIconCellRenderer(Icon[] icons)
Construct a new
StatusIconCellRenderer . |
Modifier and Type | Method and Description |
---|---|
protected JComponent |
getCellRenderer(JComponent component,
Object value,
int row,
int column)
Get the actual cell renderer component.
|
getListCellRendererComponent, getTableCellRendererComponent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getListCellRendererComponent
getTableCellRendererComponent
public StatusIconCellRenderer(Icon[] icons)
StatusIconCellRenderer
.icons
- The set of icons that represent the various states. The array
must contain at least one icon.IllegalArgumentException
- If icons
is
null
or a zero-length array.protected JComponent getCellRenderer(JComponent component, Object value, int row, int column)
getCellRenderer
in class AbstractCellRenderer
component
- The JList
or JTable
for which
the renderer is being requested.value
- The value to render.row
- The row in the table or index in the list of the cell being
rendered.column
- The column in the table of the cell being rendered, (or 0
if a list).WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses