public class BasicTableHeaderUI extends javax.swing.plaf.TableHeaderUI
| Modifier and Type | Class and Description |
|---|---|
class |
BasicTableHeaderUI.MouseInputHandler
Handles column movement and rearrangement by mouse.
|
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.table.JTableHeader |
header
The table header that is using this interface.
|
protected javax.swing.event.MouseInputListener |
mouseInputListener
The mouse input listener, responsible for mouse manipulations with
the table header.
|
protected javax.swing.CellRendererPane |
rendererPane
Paint the header cell.
|
| Constructor and Description |
|---|
BasicTableHeaderUI()
Construct a new BasicTableHeaderUI, create mouse listeners.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.event.MouseInputListener |
createMouseInputListener()
Create and return the mouse input listener.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent h) |
java.awt.Dimension |
getPreferredSize(javax.swing.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(javax.swing.JComponent c)
Sets up the specified component so it conforms the the design
guidelines of the implemented look and feel.
|
void |
paint(java.awt.Graphics gfx,
javax.swing.JComponent c)
Repaint the table header.
|
protected void |
uninstallDefaults() |
protected void |
uninstallKeyboardActions() |
protected void |
uninstallListeners()
Remove the previously installed listeners.
|
void |
uninstallUI(javax.swing.JComponent c)
Puts the specified component into the state it had before
ComponentUI.installUI(javax.swing.JComponent) was called. |
protected javax.swing.table.JTableHeader header
protected javax.swing.event.MouseInputListener mouseInputListener
protected javax.swing.CellRendererPane rendererPane
public BasicTableHeaderUI()
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent h)
protected javax.swing.event.MouseInputListener createMouseInputListener()
BasicTableHeaderUI.MouseInputHandler, if not overridden.protected void installDefaults()
protected void installKeyboardActions()
protected void installListeners()
public void installUI(javax.swing.JComponent c)
javax.swing.plaf.ComponentUIComponentUI delegate is created.
The delegate object then receives an installUI
message.
This method should perform the following tasks:
UIResource marker
interface, such as BorderUIResource or ColorUIResource.LayoutManager.JSplitPane might install a special
component for the divider.installUI in class javax.swing.plaf.ComponentUIc - the component for which this delegate will provide
services.ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()protected void uninstallDefaults()
protected void uninstallKeyboardActions()
protected void uninstallListeners()
public void uninstallUI(javax.swing.JComponent c)
javax.swing.plaf.ComponentUIComponentUI.installUI(javax.swing.JComponent) was called.uninstallUI in class javax.swing.plaf.ComponentUIc - the component for which this delegate has provided
services.ComponentUI.installUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void paint(java.awt.Graphics gfx, javax.swing.JComponent c)
paint in class javax.swing.plaf.ComponentUIgfx - the graphics for painting.c - the component for which this delegate performs
services.public java.awt.Dimension getPreferredSize(javax.swing.JComponent ignored)
getPreferredSize in class javax.swing.plaf.ComponentUIignored - unused