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 classRepaints a single column header during the fade animation cycle.protected static classCorner 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 TableCellRendererThe default renderer.Holds the list of currently selected indices.protected ListSelectionListenerListener for transition animations on list selections.protected org.pushingpixels.substance.internal.ui.SubstanceTableHeaderUI.TableHeaderListenerRepaints the header on column selection.protected PropertyChangeListenerProperty change listener.Fields inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
header, mouseInputListener, rendererPane -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUIcreateUI(JComponent comp) getColumnState(int columnIndex) Returns the current state for the specified cell.protected static ColorgetGridColor(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 voidprotected voidvoidpaint(Graphics g, JComponent c) protected voidpaintGrid(Graphics g, JComponent c) voidprocessColumnModelChangeEvent(TableColumnModel oldModel, TableColumnModel newModel) Processes the events on model changes on the table column model.protected voidprotected voidvoidvoidupdate(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
createMouseInputListener, getBaseline, getMaximumSize, getMinimumSize, getPreferredSize, getRolloverColumn, installKeyboardActions, installUI, rolloverColumnUpdated, uninstallKeyboardActionsMethods 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:
installListenersin classBasicTableHeaderUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicTableHeaderUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicTableHeaderUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classBasicTableHeaderUI
-
paint
- Overrides:
paintin classBasicTableHeaderUI
-
paintGrid
- Parameters:
g-c-
-
getGridColor
Returns the grid color for the table header.- Parameters:
header- Table header.- Returns:
- Grid color.
-
update
- Overrides:
updatein classComponentUI
-
uninstallUI
- Overrides:
uninstallUIin 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 inSubstanceScrollPaneUIto 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)
-