javax.swing.plaf.basic
public class BasicTableHeaderUI extends TableHeaderUI
| Nested Class Summary | |
|---|---|
| class | BasicTableHeaderUI.MouseInputHandler
Handles column movement and rearrangement by mouse. |
| Field Summary | |
|---|---|
| protected JTableHeader | header
The table header that is using this interface. |
| protected MouseInputListener | mouseInputListener
The mouse input listener, responsible for mouse manipulations with
the table header. |
| protected CellRendererPane | rendererPane
Paint the header cell. |
| Constructor Summary | |
|---|---|
| BasicTableHeaderUI()
Construct a new BasicTableHeaderUI, create mouse listeners. | |
| Method Summary | |
|---|---|
| protected MouseInputListener | createMouseInputListener()
Create and return the mouse input listener.
|
| static ComponentUI | createUI(JComponent h) |
| Dimension | getPreferredSize(JComponent ignored)
Get the preferred header size.
|
| protected void | installDefaults() |
| protected void | installKeyboardActions() |
| protected void | installListeners()
Add the mouse listener and the mouse motion listener to the table
header. |
| void | installUI(JComponent c) |
| void | paint(Graphics gfx, JComponent c)
Repaint the table header. |
| protected void | uninstallDefaults() |
| protected void | uninstallKeyboardActions() |
| protected void | uninstallListeners()
Remove the previously installed listeners. |
| void | uninstallUI(JComponent c) |
Returns: the mouse listener ({@link MouseInputHandler}, if not overridden.
Parameters: ignored unused
Returns: the preferred size of the associated header.