public class ColumnCellRenderer extends Object implements ListCellRenderer<TableColumn>
Constructor and Description |
---|
ColumnCellRenderer()
Constructs a default renderer.
|
ColumnCellRenderer(JComboBox<TableColumn> comboBox)
Sets up a ColumnCellRenderer for a given combo box.
|
Modifier and Type | Method and Description |
---|---|
Component |
getListCellRendererComponent(JList<? extends TableColumn> list,
TableColumn col,
int index,
boolean isSelected,
boolean hasFocus) |
void |
setNullRepresentation(Object nullRep)
Sets the representation for the null item.
|
public ColumnCellRenderer(JComboBox<TableColumn> comboBox)
comboBox
- box to watchpublic ColumnCellRenderer()
public Component getListCellRendererComponent(JList<? extends TableColumn> list, TableColumn col, int index, boolean isSelected, boolean hasFocus)
getListCellRendererComponent
in interface ListCellRenderer<TableColumn>
public void setNullRepresentation(Object nullRep)
nullRep
- null representation object to appear in combo boxCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.