Class SubstanceListUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ListUI
javax.swing.plaf.basic.BasicListUI
org.pushingpixels.substance.internal.ui.SubstanceListUI
- All Implemented Interfaces:
UpdateOptimizationAware
UI for lists in Substance look and feel.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classRepaints a single cell during the fade animation cycle.Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicListUI
BasicListUI.FocusHandler, BasicListUI.ListDataHandler, BasicListUI.ListSelectionHandler, BasicListUI.MouseInputHandler, BasicListUI.PropertyChangeHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intHolds the currently rolled-over index, or -1 is there is none such.Holds the list of currently selected indices.protected org.pushingpixels.substance.internal.ui.SubstanceListUI.RolloverFadeListenerListener for transition animations on list rollovers.protected ListSelectionListenerListener for transition animations on list selections.protected PropertyChangeListenerProperty listener that listens to theSubstanceLookAndFeel.WATERMARK_VISIBLEproperty.Fields inherited from class javax.swing.plaf.basic.BasicListUI
cellHeight, cellHeights, cellRendererChanged, cellWidth, fixedCellHeightChanged, fixedCellWidthChanged, focusListener, fontChanged, list, listDataListener, listSelectionListener, modelChanged, mouseInputListener, propertyChangeListener, prototypeCellValueChanged, rendererPane, selectionModelChanged, updateLayoutStateNeeded -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUIcreateUI(JComponent comp) getCellState(int cellIndex, Component rendererComponent) Returns the current state for the specified cell.getModelStateInfo(int row, Component rendererComponent) getStateTransitionTracker(int row) protected voidprotected voidprotected voidpaintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer cellRenderer, ListModel dataModel, ListSelectionModel selModel, int leadIndex) voidResets the rollover index.protected voidprotected voidvoidvoidupdate(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.basic.BasicListUI
convertRowToY, convertYToRow, createFocusListener, createListDataListener, createListSelectionListener, createMouseInputListener, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, getCellBounds, getPreferredSize, getRowHeight, indexToLocation, installKeyboardActions, installUI, locationToIndex, maybeUpdateLayoutState, paint, selectNextIndex, selectPreviousIndex, uninstallKeyboardActions, updateLayoutStateMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize
-
Field Details
-
selectedIndices
Holds the list of currently selected indices. -
rolledOverIndex
protected int rolledOverIndexHolds the currently rolled-over index, or -1 is there is none such. -
substancePropertyChangeListener
Property listener that listens to theSubstanceLookAndFeel.WATERMARK_VISIBLEproperty. -
substanceListSelectionListener
Listener for transition animations on list selections. -
substanceFadeRolloverListener
protected org.pushingpixels.substance.internal.ui.SubstanceListUI.RolloverFadeListener substanceFadeRolloverListenerListener for transition animations on list rollovers.
-
-
Constructor Details
-
SubstanceListUI
public SubstanceListUI()Creates a UI delegate for list.
-
-
Method Details
-
createUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicListUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classBasicListUI
-
uninstallUI
- Overrides:
uninstallUIin classBasicListUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicListUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicListUI
-
paintCell
protected void paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer cellRenderer, ListModel dataModel, ListSelectionModel selModel, int leadIndex) - Overrides:
paintCellin classBasicListUI
-
getStateTransitionTracker
-
getCellState
Returns the current state for the specified cell.- Parameters:
cellIndex- Cell index.rendererComponent- Renderer component for the specified cell index.- Returns:
- The current state for the specified cell.
-
getModelStateInfo
public StateTransitionTracker.ModelStateInfo getModelStateInfo(int row, Component rendererComponent) -
resetRolloverIndex
public void resetRolloverIndex()Resets the rollover index. -
update
- Overrides:
updatein classComponentUI
-
getUpdateOptimizationInfo
- Specified by:
getUpdateOptimizationInfoin interfaceUpdateOptimizationAware
-