public class WebListUI
extends 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.PropertyChangeHandlercellHeight, cellHeights, cellRendererChanged, cellWidth, fixedCellHeightChanged, fixedCellWidthChanged, focusListener, fontChanged, list, listDataListener, listSelectionListener, modelChanged, mouseInputListener, propertyChangeListener, prototypeCellValueChanged, rendererPane, selectionModelChanged, updateLayoutStateNeeded| Constructor and Description |
|---|
WebListUI() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
convertRowToY, convertYToRow, createFocusListener, createListDataListener, createListSelectionListener, createMouseInputListener, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, getCellBounds, getPreferredSize, getRowHeight, indexToLocation, installDefaults, installKeyboardActions, installListeners, locationToIndex, maybeUpdateLayoutState, selectNextIndex, selectPreviousIndex, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, updateLayoutStatepublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - component that will use UI instancepublic void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicListUIc - component for this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicListUIc - 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.BasicListUIg - 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.BasicListUIg - graphics contextindex - cell indexrowBounds - cell boundscellRenderer - cell rendererdataModel - list modelselModel - list selection modelleadIndex - lead cell indexpaint(java.awt.Graphics, javax.swing.JComponent)