UpdateOptimizationAware
public class SubstanceListUI extends BasicListUI implements UpdateOptimizationAware
Modifier and Type | Class | Description |
---|---|---|
protected class |
SubstanceListUI.CellRepaintCallback |
Repaints a single cell during the fade animation cycle.
|
BasicListUI.FocusHandler, BasicListUI.ListDataHandler, BasicListUI.ListSelectionHandler, BasicListUI.MouseInputHandler, BasicListUI.PropertyChangeHandler
Modifier and Type | Field | Description |
---|---|---|
protected int |
rolledOverIndex |
Holds the currently rolled-over index, or -1 is there is none such.
|
protected Map<Integer,Object> |
selectedIndices |
Holds the list of currently selected indices.
|
protected org.pushingpixels.substance.internal.ui.SubstanceListUI.RolloverFadeListener |
substanceFadeRolloverListener |
Listener for transition animations on list rollovers.
|
protected ListSelectionListener |
substanceListSelectionListener |
Listener for transition animations on list selections.
|
protected PropertyChangeListener |
substancePropertyChangeListener |
Property listener that listens to the
SubstanceLookAndFeel.WATERMARK_VISIBLE property. |
cellHeight, cellHeights, cellRendererChanged, cellWidth, fixedCellHeightChanged, fixedCellWidthChanged, focusListener, fontChanged, list, listDataListener, listSelectionListener, modelChanged, mouseInputListener, propertyChangeListener, prototypeCellValueChanged, rendererPane, selectionModelChanged, updateLayoutStateNeeded
Constructor | Description |
---|---|
SubstanceListUI() |
Creates a UI delegate for list.
|
Modifier and Type | Method | Description |
---|---|---|
static ComponentUI |
createUI(JComponent comp) |
|
ComponentState |
getCellState(int cellIndex,
Component rendererComponent) |
Returns the current state for the specified cell.
|
StateTransitionTracker.ModelStateInfo |
getModelStateInfo(int row,
Component rendererComponent) |
|
StateTransitionTracker |
getStateTransitionTracker(int row) |
|
UpdateOptimizationInfo |
getUpdateOptimizationInfo() |
|
protected void |
installDefaults() |
|
protected void |
installListeners() |
|
protected void |
paintCell(Graphics g,
int row,
Rectangle rowBounds,
ListCellRenderer cellRenderer,
ListModel dataModel,
ListSelectionModel selModel,
int leadIndex) |
|
void |
resetRolloverIndex() |
Resets the rollover index.
|
protected void |
uninstallDefaults() |
|
protected void |
uninstallListeners() |
|
void |
uninstallUI(JComponent c) |
|
void |
update(Graphics g,
JComponent c) |
convertRowToY, convertYToRow, createFocusListener, createListDataListener, createListSelectionListener, createMouseInputListener, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, getCellBounds, getPreferredSize, getRowHeight, indexToLocation, installKeyboardActions, installUI, locationToIndex, maybeUpdateLayoutState, paint, selectNextIndex, selectPreviousIndex, uninstallKeyboardActions, updateLayoutState
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize
protected Map<Integer,Object> selectedIndices
protected int rolledOverIndex
protected PropertyChangeListener substancePropertyChangeListener
SubstanceLookAndFeel.WATERMARK_VISIBLE
property.protected ListSelectionListener substanceListSelectionListener
protected org.pushingpixels.substance.internal.ui.SubstanceListUI.RolloverFadeListener substanceFadeRolloverListener
public static ComponentUI createUI(JComponent comp)
protected void installDefaults()
installDefaults
in class BasicListUI
protected void uninstallDefaults()
uninstallDefaults
in class BasicListUI
public void uninstallUI(JComponent c)
uninstallUI
in class BasicListUI
protected void installListeners()
installListeners
in class BasicListUI
protected void uninstallListeners()
uninstallListeners
in class BasicListUI
protected void paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer cellRenderer, ListModel dataModel, ListSelectionModel selModel, int leadIndex)
paintCell
in class BasicListUI
public StateTransitionTracker getStateTransitionTracker(int row)
public ComponentState getCellState(int cellIndex, Component rendererComponent)
cellIndex
- Cell index.rendererComponent
- Renderer component for the specified cell index.public StateTransitionTracker.ModelStateInfo getModelStateInfo(int row, Component rendererComponent)
public void resetRolloverIndex()
public void update(Graphics g, JComponent c)
update
in class ComponentUI
public UpdateOptimizationInfo getUpdateOptimizationInfo()
getUpdateOptimizationInfo
in interface UpdateOptimizationAware