public class JToggleButtonHeaderCellRenderer extends BaseWeakReferencingObservable implements TableCellRenderer, MouseListener
ColumnHeaderSelectionChangeNotification
.Constructor and Description |
---|
JToggleButtonHeaderCellRenderer(FeatureTable table)
Create a new JToggleButtonCellRenderer for a JTable.
|
Modifier and Type | Method and Description |
---|---|
void |
deselectAll() |
int[] |
getSelectedColumns()
Returns the selected columns table model position.
|
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column) |
void |
mouseClicked(MouseEvent event) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
addObserver, addObserver, addObservers, beginComplexNotification, clearChanged, clone, countObservers, deleteObserver, deleteObserver, deleteObservers, disableNotifications, enableNotifications, endComplexNotification, hasChanged, inComplex, isEnabledNotifications, notify, notifyObservers, notifyObservers, setChanged
public JToggleButtonHeaderCellRenderer(FeatureTable table)
public int[] getSelectedColumns()
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface TableCellRenderer
public void deselectAll()
public void mouseClicked(MouseEvent event)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener