public class ToggleCellRenderer extends AbstractCellRenderer
Modifier and Type | Field and Description |
---|---|
private ToggleIndicator |
toggle |
Constructor and Description |
---|
ToggleCellRenderer(Icon icon,
Icon altIcon)
Construct a new
ToggleTableCellRenderer . |
Modifier and Type | Method and Description |
---|---|
protected JComponent |
getCellRenderer(JComponent component,
Object value,
int row,
int column)
Get the actual renderer component.
|
getListCellRendererComponent, getTableCellRendererComponent
private ToggleIndicator toggle
public ToggleCellRenderer(Icon icon, Icon altIcon)
ToggleTableCellRenderer
.icon
- The icon that represents the true value.altIcon
- The icon that represents the false value.protected JComponent getCellRenderer(JComponent component, Object value, int row, int column)
AbstractCellRenderer
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