is new.
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TableHeaderUI
javax.swing.plaf.basic.BasicTableHeaderUI
public class BasicTableHeaderUI
BasicTableHeaderUI implementation
| Nested Class Summary | |
|---|---|
| class |
BasicTableHeaderUI.MouseInputHandler
This inner class is marked "public" due to a compiler bug. |
| Field Summary | |
|---|---|
| protected JTableHeader |
header
The JTableHeader that is delegating the painting to this UI. |
| protected MouseInputListener |
mouseInputListener
|
| protected CellRendererPane |
rendererPane
|
| Constructor Summary | |
|---|---|
|
BasicTableHeaderUI
() |
|
| Method Summary | |
|---|---|
| protected MouseInputListener |
createMouseInputListener
() Creates the mouse listener for the
JTableHeader.
|
| static ComponentUI |
createUI
(
JComponent
h) |
int
|
getBaseline
(
JComponent
Returns the baseline.
|
| Dimension |
getMaximumSize
(
JComponent
c) Return the maximum size of the header. |
| Dimension |
getMinimumSize
(
JComponent
c) Return the minimum size of the header. |
| Dimension |
getPreferredSize
(
JComponent
c) Return the preferred size of the header. |
| protected void |
installDefaults
() Initialize JTableHeader properties, e.g. |
| protected void |
installKeyboardActions
() Register all keyboard actions on the JTableHeader. |
| protected void |
installListeners
() Attaches listeners to the JTableHeader. |
| void |
installUI
(
JComponent
c) Configures the specified component appropriate for the look and feel. |
| void |
paint
(
Graphics
g,
JComponent
c) Paints the specified component appropriate for the look and feel. |
| protected void |
uninstallDefaults
() |
| protected void |
uninstallKeyboardActions
()
Unregisters default key actions.
|
| protected void |
uninstallListeners
() |
| void |
uninstallUI
(
JComponent
c) Reverses configuration which was done on the specified component during installUI. |
| Methods inherited from class javax.swing.plaf. ComponentUI |
|---|
contains
,
getAccessibleChild
,
getAccessibleChildrenCount
,
getBaselineResizeBehavior
,
update
|
| Methods inherited from class java.lang. Object |
|---|
| clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| Field Detail |
|---|
protected JTableHeader header
protected CellRendererPane rendererPane
protected MouseInputListener mouseInputListener
| Constructor Detail |
|---|
public BasicTableHeaderUI()
| Method Detail |
|---|
protected MouseInputListener createMouseInputListener()
JTableHeader.
public static ComponentUI createUI(JComponent h)
public void installUI(JComponent c)
protected void installDefaults()
protected void installListeners()
protected void installKeyboardActions()
public void uninstallUI(JComponent c)
protected void uninstallDefaults()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
Unregisters default key actions.
getBaseline
public int
getBaseline
(
JComponent
c, int width, int height)
Returns the baseline.
Overrides:
getBaseline
in class
ComponentUI
Parameters:
c - JComponent baseline is being requested for
width - the width to get the baseline for
height - the height to get the baseline for
Returns:
baseline or a value < 0 indicating there is no reasonable baseline
Throws:
NullPointerException
- if c is null
IllegalArgumentException
- if width or height is < 0
Since:
1.6
See Also:
JComponent.getBaseline(int, int)
public void paint(Graphics g,
JComponent c)
public Dimension getMinimumSize(JComponent c)
public Dimension getPreferredSize(JComponent c)
public Dimension getMaximumSize(JComponent c)