public class PortalTableHeaderUI extends BasicTableHeaderUI
| Modifier and Type | Class and Description |
|---|---|
class |
PortalTableHeaderUI.MouseInputHandler
This inner class is marked "public" due to a compiler bug.
|
| Modifier and Type | Field and Description |
|---|---|
protected JTableHeader |
header
The JTableHeader that is delegating the painting to this UI.
|
protected MouseInputListener |
mouseInputListener |
protected CellRendererPane |
rendererPane |
| Constructor and Description |
|---|
PortalTableHeaderUI() |
| Modifier and Type | Method and Description |
|---|---|
protected MouseInputListener |
createMouseInputListener()
Creates the mouse listener for the JTable.
|
static ComponentUI |
createUI(JComponent h) |
static PortalTableHeaderUI |
getInstance() |
Dimension |
getPreferredSize(JComponent comp)
Return the preferred size for this header.
|
protected void |
installDefaults()
Initialize JTableHeader properties, e.g.
|
protected void |
installKeyboardActions()
Register all keyboard actions on the JTableHeader.
|
protected void |
installListeners()
Attaches listeners to the JTableHeader.
|
void |
installUI(JComponent c) |
void |
paint(Graphics g,
JComponent c) |
void |
setSortableColumn(int columnIndex,
boolean sortable)
Sets individual column to be sortable.
|
void |
setSortableColumns(boolean sortable)
Sets all columns to be sortable.
|
protected void |
uninstallDefaults() |
protected void |
uninstallKeyboardActions() |
protected void |
uninstallListeners() |
void |
uninstallUI(JComponent c) |
protected void |
updateUI() |
getBaseline, getMaximumSize, getMinimumSize, getRolloverColumn, rolloverColumnUpdatedcontains, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior, updateprotected JTableHeader header
protected CellRendererPane rendererPane
protected MouseInputListener mouseInputListener
protected MouseInputListener createMouseInputListener()
createMouseInputListener in class BasicTableHeaderUIpublic static ComponentUI createUI(JComponent h)
public static PortalTableHeaderUI getInstance()
public void installUI(JComponent c)
installUI in class BasicTableHeaderUIprotected void installDefaults()
installDefaults in class BasicTableHeaderUIinstallUI(javax.swing.JComponent)protected void installListeners()
installListeners in class BasicTableHeaderUIprotected void installKeyboardActions()
installKeyboardActions in class BasicTableHeaderUIpublic void uninstallUI(JComponent c)
uninstallUI in class BasicTableHeaderUIprotected void uninstallDefaults()
uninstallDefaults in class BasicTableHeaderUIprotected void updateUI()
protected void uninstallListeners()
uninstallListeners in class BasicTableHeaderUIprotected void uninstallKeyboardActions()
uninstallKeyboardActions in class BasicTableHeaderUIpublic void setSortableColumns(boolean sortable)
public void setSortableColumn(int columnIndex,
boolean sortable)
public void paint(Graphics g, JComponent c)
paint in class BasicTableHeaderUIpublic Dimension getPreferredSize(JComponent comp)
getPreferredSize in class BasicTableHeaderUIcomp - the header being sizedCopyright © 2003, 2023, Oracle and/or its affiliates.