|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ListUI
javax.swing.plaf.basic.BasicListUI
org.pushingpixels.substance.internal.ui.SubstanceListUI
public class SubstanceListUI
UI for lists in Substance look and feel.
| Nested Class Summary | |
|---|---|
protected class |
SubstanceListUI.CellRepaintCallback
Repaints a single cell during the fade animation cycle. |
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicListUI |
|---|
javax.swing.plaf.basic.BasicListUI.FocusHandler, javax.swing.plaf.basic.BasicListUI.ListDataHandler, javax.swing.plaf.basic.BasicListUI.ListSelectionHandler, javax.swing.plaf.basic.BasicListUI.MouseInputHandler, javax.swing.plaf.basic.BasicListUI.PropertyChangeHandler |
| Field Summary | |
|---|---|
protected int |
rolledOverIndex
Holds the currently rolled-over index, or -1 is there is none such. |
protected java.util.Map<java.lang.Integer,java.lang.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 javax.swing.event.ListSelectionListener |
substanceListSelectionListener
Listener for transition animations on list selections. |
protected java.beans.PropertyChangeListener |
substancePropertyChangeListener
Property listener that listens to the SubstanceLookAndFeel.WATERMARK_VISIBLE property. |
| 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 | |
|---|---|
SubstanceListUI()
Creates a UI delegate for list. |
|
| Method Summary | |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent comp)
|
ComponentState |
getCellState(int cellIndex,
java.awt.Component rendererComponent)
Returns the current state for the specified cell. |
StateTransitionTracker.ModelStateInfo |
getModelStateInfo(int row,
java.awt.Component rendererComponent)
|
StateTransitionTracker |
getStateTransitionTracker(int row)
|
UpdateOptimizationInfo |
getUpdateOptimizationInfo()
|
protected void |
installDefaults()
|
protected void |
installListeners()
|
protected void |
paintCell(java.awt.Graphics g,
int row,
java.awt.Rectangle rowBounds,
javax.swing.ListCellRenderer cellRenderer,
javax.swing.ListModel dataModel,
javax.swing.ListSelectionModel selModel,
int leadIndex)
|
void |
resetRolloverIndex()
Resets the rollover index. |
protected void |
uninstallDefaults()
|
protected void |
uninstallListeners()
|
void |
uninstallUI(javax.swing.JComponent c)
|
void |
update(java.awt.Graphics g,
javax.swing.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, updateLayoutState |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map<java.lang.Integer,java.lang.Object> selectedIndices
protected int rolledOverIndex
protected java.beans.PropertyChangeListener substancePropertyChangeListener
SubstanceLookAndFeel.WATERMARK_VISIBLE property.
protected javax.swing.event.ListSelectionListener substanceListSelectionListener
protected org.pushingpixels.substance.internal.ui.SubstanceListUI.RolloverFadeListener substanceFadeRolloverListener
| Constructor Detail |
|---|
public SubstanceListUI()
| Method Detail |
|---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
protected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicListUIprotected void uninstallDefaults()
uninstallDefaults in class javax.swing.plaf.basic.BasicListUIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicListUIprotected void installListeners()
installListeners in class javax.swing.plaf.basic.BasicListUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicListUI
protected void paintCell(java.awt.Graphics g,
int row,
java.awt.Rectangle rowBounds,
javax.swing.ListCellRenderer cellRenderer,
javax.swing.ListModel dataModel,
javax.swing.ListSelectionModel selModel,
int leadIndex)
paintCell in class javax.swing.plaf.basic.BasicListUIpublic StateTransitionTracker getStateTransitionTracker(int row)
public ComponentState getCellState(int cellIndex,
java.awt.Component rendererComponent)
cellIndex - Cell index.rendererComponent - Renderer component for the specified cell index.
public StateTransitionTracker.ModelStateInfo getModelStateInfo(int row,
java.awt.Component rendererComponent)
public void resetRolloverIndex()
public void update(java.awt.Graphics g,
javax.swing.JComponent c)
update in class javax.swing.plaf.ComponentUIpublic UpdateOptimizationInfo getUpdateOptimizationInfo()
getUpdateOptimizationInfo in interface UpdateOptimizationAware
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||