|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.ListUI javax.swing.plaf.basic.BasicListUI com.alee.laf.list.WebListUI
public class WebListUI
Custom UI for JList component.
Nested Class Summary |
---|
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 |
---|
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 | |
---|---|
WebListUI()
|
Method Summary | |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebListUI for the specified component. |
int |
getSelectionRound()
Returns cells selection rounding. |
int |
getSelectionShadeWidth()
Returns cells selection shade width. |
void |
installUI(javax.swing.JComponent c)
Installs UI in the specified component. |
boolean |
isAutoScrollToSelection()
Returns whether to scroll list down to selection automatically or not. |
boolean |
isDecorateSelection()
Returns whether should decorate selected and rollover cells or not. |
boolean |
isHighlightRolloverCell()
Returns whether should highlight rollover cell or not. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paints list content. |
protected void |
paintCell(java.awt.Graphics g,
int index,
java.awt.Rectangle rowBounds,
javax.swing.ListCellRenderer cellRenderer,
javax.swing.ListModel dataModel,
javax.swing.ListSelectionModel selModel,
int leadIndex)
Paint one List cell: compute the relevant state, get the "rubber stamp" cell renderer component, and then use the CellRendererPane to paint it. |
void |
setAutoScrollToSelection(boolean autoScrollToSelection)
Sets whether to scroll list down to selection automatically or not. |
void |
setDecorateSelection(boolean decorateSelection)
Sets whether should decorate selected and rollover cells or not. |
void |
setHighlightRolloverCell(boolean highlightRolloverCell)
Sets whether should highlight rollover cell or not. |
void |
setSelectionRound(int selectionRound)
Sets cells selection rounding. |
void |
setSelectionShadeWidth(int selectionShadeWidth)
Sets cells selection shade width. |
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls UI from the specified component. |
Methods inherited from class javax.swing.plaf.basic.BasicListUI |
---|
convertRowToY, convertYToRow, createFocusListener, createListDataListener, createListSelectionListener, createMouseInputListener, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, getCellBounds, getPreferredSize, getRowHeight, indexToLocation, installDefaults, installKeyboardActions, installListeners, locationToIndex, maybeUpdateLayoutState, selectNextIndex, selectPreviousIndex, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, updateLayoutState |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebListUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- component that will use UI instance
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.basic.BasicListUI
c
- component for this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.basic.BasicListUI
c
- component with this UIpublic boolean isDecorateSelection()
public void setDecorateSelection(boolean decorateSelection)
decorateSelection
- whether should decorate selected and rollover cells or notpublic boolean isHighlightRolloverCell()
public void setHighlightRolloverCell(boolean highlightRolloverCell)
highlightRolloverCell
- whether should highlight rollover cell or notpublic int getSelectionRound()
public void setSelectionRound(int selectionRound)
selectionRound
- new cells selection roundingpublic int getSelectionShadeWidth()
public void setSelectionShadeWidth(int selectionShadeWidth)
selectionShadeWidth
- new cells selection shade widthpublic boolean isAutoScrollToSelection()
public void setAutoScrollToSelection(boolean autoScrollToSelection)
autoScrollToSelection
- whether to scroll list down to selection automatically or notpublic void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.basic.BasicListUI
g
- graphics contextc
- painted componentprotected void paintCell(java.awt.Graphics g, int index, 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.BasicListUI
g
- graphics contextindex
- cell indexrowBounds
- cell boundscellRenderer
- cell rendererdataModel
- list modelselModel
- list selection modelleadIndex
- lead cell indexpaint(java.awt.Graphics, javax.swing.JComponent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |