public class BasicTableUI extends javax.swing.plaf.TableUI
| Modifier and Type | Class and Description |
|---|---|
class |
BasicTableUI.FocusHandler |
class |
BasicTableUI.KeyHandler
Handles key events for the JTable.
|
class |
BasicTableUI.MouseInputHandler |
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.event.FocusListener |
focusListener |
protected java.awt.event.KeyListener |
keyListener |
protected javax.swing.event.MouseInputListener |
mouseInputListener |
protected javax.swing.CellRendererPane |
rendererPane |
protected javax.swing.JTable |
table |
| Constructor and Description |
|---|
BasicTableUI() |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.event.FocusListener |
createFocusListener() |
protected java.awt.event.KeyListener |
createKeyListener()
Creates and returns a key listener for the JTable.
|
protected javax.swing.event.MouseInputListener |
createMouseInputListener() |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent comp) |
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent comp)
Return the maximum size of the table.
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent comp)
Return the minimum size of the table.
|
java.awt.Dimension |
getPreferredSize(javax.swing.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(javax.swing.JComponent comp)
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 ignored)
Paint the associated table.
|
protected void |
uninstallDefaults()
Uninstalls UI defaults that have been installed by
installDefaults(). |
protected void |
uninstallKeyboardActions()
Uninstalls the keyboard actions that have been installed by
installKeyboardActions(). |
protected void |
uninstallListeners() |
void |
uninstallUI(javax.swing.JComponent c)
Puts the specified component into the state it had before
ComponentUI.installUI(javax.swing.JComponent) was called. |
protected java.awt.event.FocusListener focusListener
protected java.awt.event.KeyListener keyListener
protected javax.swing.event.MouseInputListener mouseInputListener
protected javax.swing.CellRendererPane rendererPane
protected javax.swing.JTable table
public BasicTableUI()
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
protected java.awt.event.FocusListener createFocusListener()
protected javax.swing.event.MouseInputListener createMouseInputListener()
protected java.awt.event.KeyListener createKeyListener()
public java.awt.Dimension getMaximumSize(javax.swing.JComponent comp)
getMaximumSize in class javax.swing.plaf.ComponentUIcomp - the component whose maximum size is being queried,
this is ignored.public java.awt.Dimension getMinimumSize(javax.swing.JComponent comp)
getMinimumSize in class javax.swing.plaf.ComponentUIcomp - the component whose minimum size is being queried,
this is ignored.public java.awt.Dimension getPreferredSize(javax.swing.JComponent comp)
getPreferredSize in class javax.swing.plaf.ComponentUIcomp - ignored, the table field is used insteadprotected void installDefaults()
protected void installKeyboardActions()
protected void installListeners()
protected void uninstallDefaults()
installDefaults().protected void uninstallKeyboardActions()
installKeyboardActions().protected void uninstallListeners()
public void installUI(javax.swing.JComponent comp)
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.ComponentUIcomp - the component for which this delegate will provide
services.ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()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 ignored)
paint in class javax.swing.plaf.ComponentUIgfx - the graphics for painting.ignored - the component for which this delegate performs
services.