| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class BasicTableHeaderUI extends TableHeaderUI
BasicTableHeaderUI implementation
Nested Class Summary | |
---|---|
class |
This inner class is marked "public" due to a compiler bug. |
Field Summary | |
---|---|
protected JTableHeader |
header
The JTableHeader that is delegating the painting to this UI. |
protected MouseInputListener |
mouseInputListener
|
protected CellRendererPane |
rendererPane
|
Constructor Summary | |
---|---|
|
Method Summary | |
---|---|
protected MouseInputListener |
Creates the mouse listener for the JTableHeader. |
static ComponentUI |
|
int |
getBaseline(JComponent c, int width, int height) Returns the baseline. |
Dimension |
Return the maximum size of the header. |
Dimension |
Return the minimum size of the header. |
Dimension |
Return the preferred size of the header. |
protected int |
Returns the index of the column header over which the mouse currently is. |
protected void |
Initialize JTableHeader properties, e.g. |
protected void |
Register all keyboard actions on the JTableHeader. |
protected void |
Attaches listeners to the JTableHeader. |
void |
Configures the specified component appropriate for the look and feel. |
void |
paint(Graphics g, JComponent c) Paints the specified component appropriate for the look and feel. |
protected void |
rolloverColumnUpdated(int oldColumn, int newColumn) This method gets called every time the rollover column in the table header is updated. |
protected void |
|
protected void |
Unregisters default key actions. |
protected void |
|
void |
Reverses configuration which was done on the specified component during installUI .
|
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, 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 |
---|
protected MouseInputListener createMouseInputListener()
public static ComponentUI createUI(JComponent h)
h
public int getBaseline(JComponent c, int width, int height)
getBaseline
in class ComponentUI
c
width
height
public Dimension getMaximumSize(JComponent c)
getMaximumSize
in class ComponentUI
c
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class ComponentUI
c
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class ComponentUI
c
protected int getRolloverColumn()
protected void installDefaults()
protected void installKeyboardActions()
protected void installListeners()
public void installUI(JComponent c)
installUI
in class ComponentUI
c
public void paint(Graphics g, JComponent c)
paint
in class ComponentUI
g
c
protected void rolloverColumnUpdated(int oldColumn, int newColumn)
oldColumn
- the index of the previous rollover column or -1 if the
mouse was not over a columnnewColumn
- the index of the new rollover column or -1 if the mouse
is not over a columnprotected void uninstallDefaults()
protected void uninstallKeyboardActions()
protected void uninstallListeners()
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
c
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |