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.
- Author:
- Kirill Grouchnikov
-
Nested Class Summary
Nested classes/interfaces inherited from class BasicListUI
BasicListUI.FocusHandler, BasicListUI.ListDataHandler, BasicListUI.ListSelectionHandler, BasicListUI.MouseInputHandler, BasicListUI.PropertyChangeHandler -
Field Summary
Fields 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) getCellState(int cellIndex, Component rendererComponent) Returns the current state for the specified cell.getModelStateInfo(int row) protected voidprotected voidprotected voidpaintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer<Object> cellRenderer, ListModel<Object> dataModel, ListSelectionModel selModel, int leadIndex) voidResets the rollover index.protected 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
-
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. -
update
- Overrides:
updatein classComponentUI
-
getUpdateOptimizationInfo
- Specified by:
getUpdateOptimizationInfoin interfaceUpdateOptimizationAware
-