public class BasicTableHeaderUI extends TableHeaderUI
Modifier and Type | Class and Description |
---|---|
class |
BasicTableHeaderUI.MouseInputHandler
Handles column movement and rearrangement by mouse.
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BasicTableHeaderUI()
Construct a new BasicTableHeaderUI, create mouse listeners.
|
Modifier and Type | Method and Description |
---|---|
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)
Sets up the specified component so it conforms the the design
guidelines of the implemented look and feel.
|
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)
Puts the specified component into the state it had before
ComponentUI.installUI(javax.swing.JComponent) was called. |
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, update
protected JTableHeader header
protected MouseInputListener mouseInputListener
protected CellRendererPane rendererPane
public BasicTableHeaderUI()
public static ComponentUI createUI(JComponent h)
protected MouseInputListener createMouseInputListener()
BasicTableHeaderUI.MouseInputHandler
, if not overridden.protected void installDefaults()
protected void installKeyboardActions()
protected void installListeners()
public void installUI(JComponent c)
ComponentUI
ComponentUI
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 ComponentUI
c
- 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(JComponent c)
ComponentUI
ComponentUI.installUI(javax.swing.JComponent)
was called.uninstallUI
in class ComponentUI
c
- 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(Graphics gfx, JComponent c)
paint
in class ComponentUI
gfx
- the graphics for painting.c
- the component for which this delegate performs
services.public Dimension getPreferredSize(JComponent ignored)
getPreferredSize
in class ComponentUI
ignored
- unused