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, rolloverColumnUpdated
contains, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior, update
protected JTableHeader header
protected CellRendererPane rendererPane
protected MouseInputListener mouseInputListener
protected MouseInputListener createMouseInputListener()
createMouseInputListener
in class BasicTableHeaderUI
public static ComponentUI createUI(JComponent h)
public static PortalTableHeaderUI getInstance()
public void installUI(JComponent c)
installUI
in class BasicTableHeaderUI
protected void installDefaults()
installDefaults
in class BasicTableHeaderUI
installUI(javax.swing.JComponent)
protected void installListeners()
installListeners
in class BasicTableHeaderUI
protected void installKeyboardActions()
installKeyboardActions
in class BasicTableHeaderUI
public void uninstallUI(JComponent c)
uninstallUI
in class BasicTableHeaderUI
protected void uninstallDefaults()
uninstallDefaults
in class BasicTableHeaderUI
protected void updateUI()
protected void uninstallListeners()
uninstallListeners
in class BasicTableHeaderUI
protected void uninstallKeyboardActions()
uninstallKeyboardActions
in class BasicTableHeaderUI
public void setSortableColumns(boolean sortable)
public void setSortableColumn(int columnIndex, boolean sortable)
public void paint(Graphics g, JComponent c)
paint
in class BasicTableHeaderUI
public Dimension getPreferredSize(JComponent comp)
getPreferredSize
in class BasicTableHeaderUI
comp
- the header being sizedCopyright © 2003, 2023, Oracle and/or its affiliates.