Class RadianceTableHeaderUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TableHeaderUI
javax.swing.plaf.basic.BasicTableHeaderUI
org.pushingpixels.radiance.theming.internal.ui.RadianceTableHeaderUI
UI for table headers in Radiance look and feel.
- Author:
- Kirill Grouchnikov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static 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 BasicTableHeaderUI
BasicTableHeaderUI.MouseInputHandler -
Field Summary
Fields inherited from class 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.getTracker(int columnIndex, boolean initialRollover, boolean initialSelected) protected voidprotected voidvoidpaint(Graphics g, JComponent c) protected voidvoidprocessColumnModelChangeEvent(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 BasicTableHeaderUI
createMouseInputListener, getBaseline, getMaximumSize, getMinimumSize, getPreferredSize, getRolloverColumn, installKeyboardActions, installUI, rolloverColumnUpdated, uninstallKeyboardActionsMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior
-
Constructor Details
-
RadianceTableHeaderUI
protected RadianceTableHeaderUI()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
-
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
-
getScrollPaneCornerFiller
Returns the scroll pane corner filler component. This method is used inRadianceScrollPaneUIto 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)
-