public class SubstanceTableHeaderUI extends BasicTableHeaderUI
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
SubstanceTableHeaderUI.ColumnHeaderRepaintCallback |
Repaints a single column header during the fade animation cycle.
|
protected static class |
SubstanceTableHeaderUI.ScrollPaneCornerFiller |
Corner filler for tables wrapped in scroll panes.
|
BasicTableHeaderUI.MouseInputHandler| Modifier and Type | Field | Description |
|---|---|---|
protected TableCellRenderer |
defaultHeaderRenderer |
The default renderer.
|
protected Map<Integer,Object> |
selectedIndices |
Holds the list of currently selected indices.
|
protected ListSelectionListener |
substanceFadeSelectionListener |
Listener for transition animations on list selections.
|
protected org.pushingpixels.substance.internal.ui.SubstanceTableHeaderUI.TableHeaderListener |
substanceHeaderListener |
Repaints the header on column selection.
|
protected PropertyChangeListener |
substancePropertyChangeListener |
Property change listener.
|
header, mouseInputListener, rendererPane| Constructor | Description |
|---|---|
SubstanceTableHeaderUI() |
Creates a new UI delegate.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ComponentUI |
createUI(JComponent comp) |
|
ComponentState |
getColumnState(int columnIndex) |
Returns the current state for the specified cell.
|
protected static Color |
getGridColor(JTableHeader header) |
Returns the grid color for the table header.
|
StateTransitionTracker.ModelStateInfo |
getModelStateInfo(int columnIndex) |
|
JComponent |
getScrollPaneCornerFiller() |
Returns the scroll pane corner filler component.
|
StateTransitionTracker |
getStateTransitionTracker(int columnIndex) |
|
StateTransitionTracker |
getTracker(int columnIndex,
boolean initialRollover,
boolean initialSelected) |
|
protected void |
installDefaults() |
|
protected void |
installListeners() |
|
void |
paint(Graphics g,
JComponent c) |
|
protected void |
paintGrid(Graphics g,
JComponent c) |
|
void |
processColumnModelChangeEvent(TableColumnModel oldModel,
TableColumnModel newModel) |
Processes the events on model changes on the table column model.
|
protected void |
uninstallDefaults() |
|
protected void |
uninstallListeners() |
|
void |
uninstallUI(JComponent c) |
|
void |
update(Graphics g,
JComponent c) |
createMouseInputListener, getBaseline, getMaximumSize, getMinimumSize, getPreferredSize, getRolloverColumn, installKeyboardActions, installUI, rolloverColumnUpdated, uninstallKeyboardActionscontains, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehaviorprotected org.pushingpixels.substance.internal.ui.SubstanceTableHeaderUI.TableHeaderListener substanceHeaderListener
protected TableCellRenderer defaultHeaderRenderer
protected Map<Integer,Object> selectedIndices
protected ListSelectionListener substanceFadeSelectionListener
protected PropertyChangeListener substancePropertyChangeListener
public SubstanceTableHeaderUI()
public static ComponentUI createUI(JComponent comp)
protected void installListeners()
installListeners in class BasicTableHeaderUIprotected void installDefaults()
installDefaults in class BasicTableHeaderUIprotected void uninstallListeners()
uninstallListeners in class BasicTableHeaderUIprotected void uninstallDefaults()
uninstallDefaults in class BasicTableHeaderUIpublic void paint(Graphics g, JComponent c)
paint in class BasicTableHeaderUIprotected void paintGrid(Graphics g, JComponent c)
g - c - protected static Color getGridColor(JTableHeader header)
header - Table header.public void update(Graphics g, JComponent c)
update in class ComponentUIpublic void uninstallUI(JComponent c)
uninstallUI in class BasicTableHeaderUIpublic ComponentState getColumnState(int columnIndex)
columnIndex - Column index.public StateTransitionTracker.ModelStateInfo getModelStateInfo(int columnIndex)
public StateTransitionTracker getStateTransitionTracker(int columnIndex)
public JComponent getScrollPaneCornerFiller()
SubstanceScrollPaneUI to put a consistent filler for tables.public void processColumnModelChangeEvent(TableColumnModel oldModel, TableColumnModel newModel)
oldModel - Old column model.newModel - New column model.public StateTransitionTracker getTracker(int columnIndex, boolean initialRollover, boolean initialSelected)