be.lassi.ui.util.table
Class SortableTableHeaderRenderer
java.lang.Object
be.lassi.ui.util.table.SortableTableHeaderRenderer
- All Implemented Interfaces:
- javax.swing.table.TableCellRenderer
public class SortableTableHeaderRenderer
- extends java.lang.Object
- implements javax.swing.table.TableCellRenderer
Custom renderer for patch table headers.
Constructor Summary |
SortableTableHeaderRenderer(javax.swing.table.TableCellRenderer renderer)
Contructs a new patch table header renderer. |
Method Summary |
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
|
void |
setToolTipText(int column,
java.lang.String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortableTableHeaderRenderer
public SortableTableHeaderRenderer(javax.swing.table.TableCellRenderer renderer)
- Contructs a new patch table header renderer.
- Parameters:
renderer
- the original header renderer
getTableCellRendererComponent
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
-
- Specified by:
getTableCellRendererComponent
in interface javax.swing.table.TableCellRenderer
setToolTipText
public void setToolTipText(int column,
java.lang.String text)