Class SubstanceTableHeaderUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TableHeaderUI
javax.swing.plaf.basic.BasicTableHeaderUI
org.pushingpixels.substance.internal.ui.SubstanceTableHeaderUI
UI for table headers in Substance look and feel.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Repaints a single column header during the fade animation cycle.protected static class
Corner filler for tables wrapped in scroll panes.Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
BasicTableHeaderUI.MouseInputHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TableCellRenderer
The default renderer.Holds the list of currently selected indices.protected ListSelectionListener
Listener for transition animations on list selections.protected org.pushingpixels.substance.internal.ui.SubstanceTableHeaderUI.TableHeaderListener
Repaints the header on column selection.protected PropertyChangeListener
Property change listener.Fields inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
header, mouseInputListener, rendererPane
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
createUI
(JComponent comp) 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.getModelStateInfo
(int columnIndex) Returns the scroll pane corner filler component.getStateTransitionTracker
(int columnIndex) getTracker
(int columnIndex, boolean initialRollover, boolean initialSelected) protected void
protected void
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
protected void
void
void
update
(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
createMouseInputListener, getBaseline, getMaximumSize, getMinimumSize, getPreferredSize, getRolloverColumn, installKeyboardActions, installUI, rolloverColumnUpdated, uninstallKeyboardActions
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior
-
Field Details
-
substanceHeaderListener
protected org.pushingpixels.substance.internal.ui.SubstanceTableHeaderUI.TableHeaderListener substanceHeaderListenerRepaints the header on column selection. -
defaultHeaderRenderer
The default renderer. -
selectedIndices
Holds the list of currently selected indices. -
substanceFadeSelectionListener
Listener for transition animations on list selections. -
substancePropertyChangeListener
Property change listener.
-
-
Constructor Details
-
SubstanceTableHeaderUI
public SubstanceTableHeaderUI()Creates a new UI delegate.
-
-
Method Details
-
createUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classBasicTableHeaderUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicTableHeaderUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classBasicTableHeaderUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaults
in classBasicTableHeaderUI
-
paint
- Overrides:
paint
in classBasicTableHeaderUI
-
paintGrid
- Parameters:
g
-c
-
-
getGridColor
Returns the grid color for the table header.- Parameters:
header
- Table header.- Returns:
- Grid color.
-
update
- Overrides:
update
in classComponentUI
-
uninstallUI
- Overrides:
uninstallUI
in classBasicTableHeaderUI
-
getColumnState
Returns the current state for the specified cell.- Parameters:
columnIndex
- Column index.- Returns:
- The current state for the specified column.
-
getModelStateInfo
-
getStateTransitionTracker
-
getScrollPaneCornerFiller
Returns the scroll pane corner filler component. This method is used inSubstanceScrollPaneUI
to put a consistent filler for tables.- Returns:
- Scroll pane corner filler.
-
processColumnModelChangeEvent
Processes the events on model changes on the table column model.- Parameters:
oldModel
- Old column model.newModel
- New column model.
-
getTracker
public StateTransitionTracker getTracker(int columnIndex, boolean initialRollover, boolean initialSelected)
-