javax.swing.plaf.basic
public class BasicTableUI extends 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 FocusListener |
focusListener |
protected KeyListener |
keyListener |
protected MouseInputListener |
mouseInputListener |
protected CellRendererPane |
rendererPane |
protected JTable |
table |
Constructor and Description |
---|
BasicTableUI() |
Modifier and Type | Method and Description |
---|---|
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)
Sets up the specified component so it conforms the the design
guidelines of the implemented look and feel.
|
void |
paint(Graphics gfx,
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(JComponent c)
Puts the specified component into the state it had before
ComponentUI.installUI(javax.swing.JComponent) was called. |
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected FocusListener focusListener
protected KeyListener keyListener
protected MouseInputListener mouseInputListener
protected CellRendererPane rendererPane
public BasicTableUI()
public static ComponentUI createUI(JComponent comp)
protected FocusListener createFocusListener()
protected MouseInputListener createMouseInputListener()
protected KeyListener createKeyListener()
public Dimension getMaximumSize(JComponent comp)
getMaximumSize
in class ComponentUI
comp
- the component whose maximum size is being queried,
this is ignored.public Dimension getMinimumSize(JComponent comp)
getMinimumSize
in class ComponentUI
comp
- the component whose minimum size is being queried,
this is ignored.public Dimension getPreferredSize(JComponent comp)
getPreferredSize
in class ComponentUI
comp
- 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(JComponent comp)
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
comp
- 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(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 ignored)
paint
in class ComponentUI
gfx
- the graphics for painting.ignored
- the component for which this delegate performs
services.