|
|||||||||
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.TableHeaderUI
javax.swing.plaf.basic.BasicTableHeaderUI
public class BasicTableHeaderUI
Basic pluggable look and feel interface for JTableHeader.
Nested Class Summary | |
---|---|
class |
BasicTableHeaderUI.MouseInputHandler
Handles column movement and rearrangement by mouse. |
Field Summary | |
---|---|
protected JTableHeader |
header
The table header that is using this interface. |
protected MouseInputListener |
mouseInputListener
The mouse input listener, responsible for mouse manipulations with the table header. |
protected CellRendererPane |
rendererPane
Paint the header cell. |
Constructor Summary | |
---|---|
BasicTableHeaderUI()
Construct a new BasicTableHeaderUI, create mouse listeners. |
Method Summary | |
---|---|
protected MouseInputListener |
createMouseInputListener()
Create and return the mouse input listener. |
static ComponentUI |
createUI(JComponent h)
|
Dimension |
getPreferredSize(JComponent ignored)
Get the preferred header size. |
protected void |
installDefaults()
|
protected void |
installKeyboardActions()
|
protected void |
installListeners()
Add the mouse listener and the mouse motion listener to the table header. |
void |
installUI(JComponent c)
Sets up the specified component so it conforms the the design guidelines of the implemented look and feel. |
void |
paint(Graphics gfx,
JComponent c)
Repaint the table header. |
protected void |
uninstallDefaults()
|
protected void |
uninstallKeyboardActions()
|
protected void |
uninstallListeners()
Remove the previously installed listeners. |
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, getMaximumSize, getMinimumSize, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JTableHeader header
protected MouseInputListener mouseInputListener
protected CellRendererPane rendererPane
Constructor Detail |
---|
public BasicTableHeaderUI()
Method Detail |
---|
public static ComponentUI createUI(JComponent h)
protected MouseInputListener createMouseInputListener()
BasicTableHeaderUI.MouseInputHandler
, if not overridden.protected void installDefaults()
protected void installKeyboardActions()
protected void installListeners()
public void installUI(JComponent c)
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
c
- the component for which this delegate will provide
services.ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
protected void uninstallDefaults()
protected void uninstallKeyboardActions()
protected void uninstallListeners()
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 c)
paint
in class ComponentUI
gfx
- the graphics for painting.c
- the component for which this delegate performs
services.public Dimension getPreferredSize(JComponent ignored)
getPreferredSize
in class ComponentUI
ignored
- unused
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |