Class RadianceListUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ListUI
javax.swing.plaf.basic.BasicListUI
org.pushingpixels.radiance.theming.internal.ui.RadianceListUI
- All Implemented Interfaces:
UpdateOptimizationAware
UI for lists in Radiance look and feel.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classRepaints a single cell during the fade animation cycle.private final classprivate classprivate classListener for fade animations on list rollovers.Nested classes/interfaces inherited from class BasicListUI
BasicListUI.FocusHandler, BasicListUI.ListDataHandler, BasicListUI.ListSelectionHandler, BasicListUI.MouseInputHandler, BasicListUI.PropertyChangeHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ComponentListenerListener for transition animations on list rollovers.private ListDataListenerprivate ListSelectionListenerListener for transition animations on list selections.private PropertyChangeListenerProperty listener.private intHolds the currently rolled-over index, or -1 is there is none such.Holds the list of currently selected indices.private StateTransitionMultiTracker<Integer> private UpdateOptimizationInfoFields inherited from class 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) private voidInitiates the fade out effect.getCellState(int cellIndex, Component rendererComponent) Returns the current state for the specified cell.getModelStateInfo(int row) private StateTransitionTrackergetTracker(int row, boolean initialRollover, boolean initialSelected) protected voidprotected voidprotected voidpaintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer<Object> cellRenderer, ListModel<Object> dataModel, ListSelectionModel selModel, int leadIndex) voidResets the rollover index.private voidprotected voidprotected voidvoidvoidupdate(Graphics g, JComponent c) Methods inherited from class 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 ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize
-
Field Details
-
selectedIndices
-
rolledOverIndex
private int rolledOverIndexHolds the currently rolled-over index, or -1 is there is none such. -
radiancePropertyChangeListener
Property listener. -
radianceListSelectionListener
Listener for transition animations on list selections. -
radianceFadeRolloverListener
Listener for transition animations on list rollovers. -
radianceComponentListener
-
stateTransitionMultiTracker
-
radianceListDataListener
-
updateInfo
-
-
Constructor Details
-
RadianceListUI
protected RadianceListUI()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<Object> cellRenderer, ListModel<Object> dataModel, ListSelectionModel selModel, int leadIndex) - Overrides:
paintCellin classBasicListUI
-
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
-
resetRolloverIndex
public void resetRolloverIndex()Resets the rollover index. -
fadeOutRolloverIndication
private void fadeOutRolloverIndication()Initiates the fade out effect. -
update
- Overrides:
updatein classComponentUI
-
syncModelContents
private void syncModelContents() -
getTracker
private StateTransitionTracker getTracker(int row, boolean initialRollover, boolean initialSelected) -
getUpdateOptimizationInfo
- Specified by:
getUpdateOptimizationInfoin interfaceUpdateOptimizationAware
-