SynthTableHeaderUIpublic class BasicTableHeaderUI extends TableHeaderUI
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | BasicTableHeaderUI.MouseInputHandler | This class should be treated as a "protected" inner class. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| protected JTableHeader | header | The  JTableHeaderthat is delegating the painting to this UI. | 
| protected MouseInputListener | mouseInputListener | Listeners that are attached to the  JTable | 
| protected CellRendererPane | rendererPane | The instance of  CellRendererPane. | 
| Constructor | Description | 
|---|---|
| BasicTableHeaderUI() | Constructs a  BasicTableHeaderUI. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| protected MouseInputListener | createMouseInputListener() | Creates the mouse listener for the  JTableHeader. | 
| static ComponentUI | createUI | Returns a new instance of  BasicTableHeaderUI. | 
| int | getBaseline | Returns the baseline. | 
| Dimension | getMaximumSize | Return the maximum size of the header. | 
| Dimension | getMinimumSize | Return the minimum size of the header. | 
| Dimension | getPreferredSize | Return the preferred size of the header. | 
| protected int | getRolloverColumn() | Returns the index of the column header over which the mouse currently is. | 
| protected void | installDefaults() | Initializes JTableHeader properties such as font, foreground, and background. | 
| protected void | installKeyboardActions() | Register all keyboard actions on the JTableHeader. | 
| protected void | installListeners() | Attaches listeners to the JTableHeader. | 
| protected void | rolloverColumnUpdated | This method gets called every time when a rollover column in the table header is updated. | 
| protected void | uninstallDefaults() | Uninstalls default properties | 
| protected void | uninstallKeyboardActions() | Unregisters default key actions. | 
| protected void | uninstallListeners() | Unregisters listeners. | 
contains, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior, installUI, paint, uninstallUI, update
protected JTableHeader header
JTableHeader that is delegating the painting to this UI.protected CellRendererPane rendererPane
CellRendererPane.protected MouseInputListener mouseInputListener
JTable
public BasicTableHeaderUI()
BasicTableHeaderUI.protected MouseInputListener createMouseInputListener()
JTableHeader.JTableHeader
public static ComponentUI createUI(JComponent h)
BasicTableHeaderUI.h - a component.BasicTableHeaderUI
protected void installDefaults()
protected void installListeners()
protected void installKeyboardActions()
protected void uninstallDefaults()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
protected int getRolloverColumn()
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 columnpublic int getBaseline(JComponent c, int width, int height)
getBaseline in class ComponentUI
c - JComponent baseline is being requested forwidth - the width to get the baseline forheight - the height to get the baseline forNullPointerException - if c is null
IllegalArgumentException - if width or height is < 0public Dimension getMinimumSize(JComponent c)
getMinimumSize in class ComponentUI
c - the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple componentsDimension object or null
public Dimension getPreferredSize(JComponent c)
getPreferredSize in class ComponentUI
c - the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple componentsDimension object containing given component's preferred size appropriate for the look and feelpublic Dimension getMaximumSize(JComponent c)
getMaximumSize in class ComponentUI
c - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple componentsDimension object or null
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/basic/BasicTableHeaderUI.html