is new.
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TableUI
javax.swing.plaf.basic.BasicTableUI
public class BasicTableUI
BasicTableUI implementation
| Nested Class Summary | |
|---|---|
| class |
BasicTableUI.FocusHandler
This inner class is marked "public" due to a compiler bug. |
| class |
BasicTableUI.KeyHandler
This inner class is marked "public" due to a compiler bug. |
| class |
BasicTableUI.MouseInputHandler
This inner class is marked "public" due to a compiler bug. |
| Field Summary | |
|---|---|
| protected FocusListener |
focusListener
|
| protected KeyListener |
keyListener
|
| protected MouseInputListener |
mouseInputListener
|
| protected CellRendererPane |
rendererPane
|
| protected JTable |
table
|
| Constructor Summary | |
|---|---|
|
BasicTableUI
() |
|
| Method Summary | |
|---|---|
| protected FocusListener |
createFocusListener
() Creates the focus listener for handling keyboard navigation in the JTable. |
| protected KeyListener |
createKeyListener
() Creates the key listener for handling keyboard navigation in the JTable. |
| protected MouseInputListener |
createMouseInputListener
() Creates the mouse listener for the JTable. |
| static ComponentUI |
createUI
(
JComponent
c) |
int
|
getBaseline
(
JComponent
Returns the baseline.
|
Component.BaselineResizeBehavior
|
getBaselineResizeBehavior
(
JComponent
Returns an enum indicating how the baseline of the component changes as the size changes.
|
| Dimension |
getMaximumSize
(
JComponent
c) Return the maximum size of the table. |
| Dimension |
getMinimumSize
(
JComponent
c) Return the minimum size of the table. |
| Dimension |
getPreferredSize
(
JComponent
c) Return the preferred size of the table. |
| protected void |
installDefaults
() Initialize JTable properties, e.g. |
| protected void |
installKeyboardActions
() Register all keyboard actions on the JTable. |
| protected void |
installListeners
() Attaches listeners to the JTable. |
| void |
installUI
(
JComponent
c) Configures the specified component appropriate for the look and feel. |
| void |
paint
(
Graphics
g,
JComponent
c) Paint a representation of the table instance that was set in installUI(). |
| protected void |
uninstallDefaults
() |
| protected void |
uninstallKeyboardActions
() |
| 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 , update |
| Methods inherited from class java.lang. Object |
|---|
| clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| Field Detail |
|---|
protected JTable table
protected CellRendererPane rendererPane
protected KeyListener keyListener
protected FocusListener focusListener
protected MouseInputListener mouseInputListener
| Constructor Detail |
|---|
public BasicTableUI()
| Method Detail |
|---|
protected KeyListener createKeyListener()
protected FocusListener createFocusListener()
protected MouseInputListener createMouseInputListener()
public static ComponentUI createUI(JComponent c)
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()
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)
getBaselineResizeBehavior
public
Component.BaselineResizeBehavior
getBaselineResizeBehavior
(
JComponent
c)
Returns an enum indicating how the baseline of the component changes as the size changes.
Overrides:
getBaselineResizeBehavior
in class
ComponentUI
Parameters:
c - JComponent to return baseline resize behavior for
Returns:
an enum indicating how the baseline changes as the component size changes
Throws:
NullPointerException
- if c is null
Since:
1.6
See Also:
JComponent.getBaseline(int, int)
public Dimension getMinimumSize(JComponent c)
public Dimension getPreferredSize(JComponent c)
public Dimension getMaximumSize(JComponent c)
public void paint(Graphics g,
JComponent c)