ch.randelshofer.quaqua
Class QuaquaTableHeaderUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TableHeaderUI
javax.swing.plaf.basic.BasicTableHeaderUI
ch.randelshofer.quaqua.QuaquaTableHeaderUI
public class QuaquaTableHeaderUI
- extends javax.swing.plaf.basic.BasicTableHeaderUI
QuaquaTableHeaderUI.
- Version:
- 1.2 2007-02-08 Don't do any magic with the size of the table header
cells, so that the ColumnModel has full control over the layout.
1.1 2006-04-08 Take insets of table header border into account
when determining the height of the table header.
1.0 June 22, 2004 Created.
- Author:
- Werner Randelshofer
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTableHeaderUI |
javax.swing.plaf.basic.BasicTableHeaderUI.MouseInputHandler |
Fields inherited from class javax.swing.plaf.basic.BasicTableHeaderUI |
header, mouseInputListener, rendererPane |
Method Summary |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
Return the preferred size of the header. |
void |
installDefaults()
|
protected void |
installListeners()
Attaches listeners to the JTableHeader. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
void |
paintOLD(java.awt.Graphics g,
javax.swing.JComponent c)
|
protected void |
uninstallListeners()
|
Methods inherited from class javax.swing.plaf.basic.BasicTableHeaderUI |
createMouseInputListener, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, uninstallDefaults, uninstallKeyboardActions, uninstallUI |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
columnModelListener
protected javax.swing.event.TableColumnModelListener columnModelListener
QuaquaTableHeaderUI
public QuaquaTableHeaderUI()
- Creates a new instance.
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
installDefaults
public void installDefaults()
- Overrides:
installDefaults
in class javax.swing.plaf.basic.BasicTableHeaderUI
paint
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
paint
in class javax.swing.plaf.basic.BasicTableHeaderUI
paintOLD
public void paintOLD(java.awt.Graphics g,
javax.swing.JComponent c)
installListeners
protected void installListeners()
- Attaches listeners to the JTableHeader.
- Overrides:
installListeners
in class javax.swing.plaf.basic.BasicTableHeaderUI
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in class javax.swing.plaf.basic.BasicTableHeaderUI
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Return the preferred size of the header. The preferred height is the
maximum of the preferred heights of all of the components provided
by the header renderers. The preferred width is the sum of the
preferred widths of each column (plus inter-cell spacing).
- Overrides:
getPreferredSize
in class javax.swing.plaf.basic.BasicTableHeaderUI