|
||||||||||
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
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 | |
---|---|
protected boolean |
autoScrollToSelection
|
protected boolean |
decorateSelection
Style settings. |
protected boolean |
highlightRolloverCell
|
protected java.awt.event.MouseAdapter |
mouseAdapter
List listeners. |
protected int |
rolloverIndex
Runtime variables. |
protected java.awt.Color |
selectionBackgroundColor
|
protected java.awt.Color |
selectionBorderColor
|
protected javax.swing.event.ListSelectionListener |
selectionListener
|
protected int |
selectionRound
|
protected int |
selectionShadeWidth
|
protected boolean |
webColoredSelection
|
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. |
java.awt.Color |
getSelectionBackgroundColor()
Returns selection background color. |
java.awt.Color |
getSelectionBorderColor()
Returns selection border color. |
int |
getSelectionRound()
Returns cells selection rounding. |
int |
getSelectionShadeWidth()
Returns cells selection shade width. |
protected ToolTipProvider<? extends WebList> |
getToolTipProvider()
Returns custom WebLaF tooltip provider. |
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. |
boolean |
isWebColoredSelection()
Returns whether selection should be web-colored or not. |
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 |
setSelectionBackgroundColor(java.awt.Color color)
Sets selection background color. |
void |
setSelectionBorderColor(java.awt.Color color)
Sets selection border color. |
void |
setSelectionRound(int selectionRound)
Sets cells selection rounding. |
void |
setSelectionShadeWidth(int selectionShadeWidth)
Sets cells selection shade width. |
void |
setWebColoredSelection(boolean webColored)
Sets whether selection should be web-colored or not. |
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, paint, 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 |
Field Detail |
---|
protected boolean decorateSelection
protected boolean highlightRolloverCell
protected int selectionRound
protected int selectionShadeWidth
protected boolean webColoredSelection
protected java.awt.Color selectionBorderColor
protected java.awt.Color selectionBackgroundColor
protected boolean autoScrollToSelection
protected java.awt.event.MouseAdapter mouseAdapter
protected javax.swing.event.ListSelectionListener selectionListener
protected int rolloverIndex
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 UIprotected ToolTipProvider<? extends WebList> getToolTipProvider()
public 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 isWebColoredSelection()
public void setWebColoredSelection(boolean webColored)
webColored
- whether selection should be web-colored or notpublic java.awt.Color getSelectionBorderColor()
public void setSelectionBorderColor(java.awt.Color color)
color
- selection border colorpublic java.awt.Color getSelectionBackgroundColor()
public void setSelectionBackgroundColor(java.awt.Color color)
color
- selection background colorpublic boolean isAutoScrollToSelection()
public void setAutoScrollToSelection(boolean autoScrollToSelection)
autoScrollToSelection
- whether to scroll list down to selection automatically or notprotected 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 indexBasicListUI.paint(java.awt.Graphics, javax.swing.JComponent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |