javax.swing.plaf.basic
public class BasicTableUI extends TableUI
| Nested Class Summary | |
|---|---|
| class | BasicTableUI.FocusHandler |
| class | BasicTableUI.KeyHandler
Handles key events for the JTable. |
| class | BasicTableUI.MouseInputHandler |
| Field Summary | |
|---|---|
| protected FocusListener | focusListener |
| protected KeyListener | keyListener |
| protected MouseInputListener | mouseInputListener |
| protected CellRendererPane | rendererPane |
| protected JTable | table |
| Method Summary | |
|---|---|
| protected FocusListener | createFocusListener() |
| protected KeyListener | createKeyListener()
Creates and returns a key listener for the JTable.
|
| protected MouseInputListener | createMouseInputListener() |
| static ComponentUI | createUI(JComponent comp) |
| Dimension | getMaximumSize(JComponent comp)
Return the maximum size of the table. |
| Dimension | getMinimumSize(JComponent comp)
Return the minimum size of the table. |
| Dimension | getPreferredSize(JComponent comp)
Returns the preferred size for the table of that UI.
|
| protected void | installDefaults() |
| protected void | installKeyboardActions()
Installs keyboard actions on the table. |
| protected void | installListeners() |
| void | installUI(JComponent comp) |
| void | paint(Graphics gfx, JComponent ignored)
Paint the associated table. |
| protected void | uninstallDefaults()
Uninstalls UI defaults that have been installed by
{@link #installDefaults()}. |
| protected void | uninstallKeyboardActions()
Uninstalls the keyboard actions that have been installed by
{@link #installKeyboardActions()}. |
| protected void | uninstallListeners() |
| void | uninstallUI(JComponent c) |
Returns: a key listener for the JTable
Parameters: comp the component whose maximum size is being queried, this is ignored.
Returns: a Dimension object representing the maximum size of the table, or null if the table has no elements.
Parameters: comp the component whose minimum size is being queried, this is ignored.
Returns: a Dimension object representing the minimum size of the table, or null if the table has no elements.
Parameters: comp ignored, the table field is used instead
Returns: the preferred size for the table of that UI