javax.swing.plaf.basic
Class BasicTableHeaderUI
java.lang.Object
|
+--javax.swing.plaf.ComponentUI
|
+--javax.swing.plaf.TableHeaderUI
|
+--javax.swing.plaf.basic.BasicTableHeaderUI
- public class BasicTableHeaderUI
- extends TableHeaderUI
BasicTableHeaderUI implementation
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
header
protected JTableHeader header
- The JTableHeader that is delegating the painting to this UI.
rendererPane
protected CellRendererPane rendererPane
mouseInputListener
protected MouseInputListener mouseInputListener
BasicTableHeaderUI
public BasicTableHeaderUI()
createMouseInputListener
protected MouseInputListener createMouseInputListener()
- Creates the mouse listener for the JTable.
createUI
public static ComponentUI createUI(JComponent h)
installUI
public void installUI(JComponent c)
- Overrides:
- installUI in class ComponentUI
installDefaults
protected void installDefaults()
- Initialize JTableHeader properties, e.g. font, foreground, and background.
The font, foreground, and background properties are only set if their
current value is either null or a UIResource, other properties are set
if the current value is null.
- See Also:
installUI(javax.swing.JComponent)
installListeners
protected void installListeners()
- Attaches listeners to the JTableHeader.
installKeyboardActions
protected void installKeyboardActions()
- Register all keyboard actions on the JTableHeader.
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
- uninstallUI in class ComponentUI
uninstallDefaults
protected void uninstallDefaults()
uninstallListeners
protected void uninstallListeners()
uninstallKeyboardActions
protected void uninstallKeyboardActions()
paint
public void paint(Graphics g,
JComponent c)
- Overrides:
- paint in class ComponentUI
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Return the minimum size of the header. The minimum width is the sum
of the minimum widths of each column (plus inter-cell spacing).
- Overrides:
- getMinimumSize in class ComponentUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Return the preferred size of the header. The preferred height is the
maximum of the preferred heights of all of the components provided
by the header renderers. The preferred width is the sum of the
preferred widths of each column (plus inter-cell spacing).
- Overrides:
- getPreferredSize in class ComponentUI
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Return the maximum size of the header. The maximum width is the sum
of the maximum widths of each column (plus inter-cell spacing).
- Overrides:
- getMaximumSize in class ComponentUI
Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.