|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TableUI
javax.swing.plaf.basic.BasicTableUI
public class BasicTableUI
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
|
Constructor Summary | |
---|---|
BasicTableUI()
|
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)
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. |
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 FocusListener focusListener
protected KeyListener keyListener
protected MouseInputListener mouseInputListener
protected CellRendererPane rendererPane
protected JTable table
Constructor Detail |
---|
public BasicTableUI()
Method Detail |
---|
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 instead
protected 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |