public class WebListUI extends javax.swing.plaf.basic.BasicListUI implements Styleable, ShapeProvider, MarginSupport, PaddingSupport
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| Modifier and Type | Field and Description |
|---|---|
static int |
heightChanged |
protected ListItemHoverBehavior |
hoverCellTracker |
protected int |
hoverIndex |
protected java.awt.Insets |
margin
Runtime variables.
|
protected java.awt.Insets |
padding |
protected IListPainter |
painter
Component painter.
|
protected boolean |
scrollToSelection |
protected ListSelectionStyle |
selectionStyle
Style settings.
|
protected javax.swing.event.ListSelectionListener |
selectionTracker
Listeners.
|
protected boolean |
selectOnHover |
static int |
widthChanged |
cellHeight, cellHeights, cellRendererChanged, cellWidth, fixedCellHeightChanged, fixedCellWidthChanged, focusListener, fontChanged, list, listDataListener, listSelectionListener, modelChanged, mouseInputListener, propertyChangeListener, prototypeCellValueChanged, rendererPane, selectionModelChanged, updateLayoutStateNeededEMPTYEMPTY| 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.
|
protected <T> T |
getBasicListUIValue(java.lang.String field)
Returns basic list UI field value.
|
javax.swing.CellRendererPane |
getCellRendererPane()
Returns tree cell renderer pane.
|
protected java.lang.Integer |
getColumnCount()
Returns cached column count field value.
|
int |
getHoverIndex()
Returns current mousover index.
|
protected java.lang.Integer |
getLayoutOrientation()
Returns layout orientation field value.
|
protected java.lang.Integer |
getListHeight()
Returns cached list height field value.
|
protected java.lang.Integer |
getListWidth()
Returns cached list width field value.
|
java.awt.Insets |
getMargin()
Returns current margin.
|
java.awt.Insets |
getPadding()
Returns current padding.
|
Painter |
getPainter()
Returns list painter.
|
protected java.lang.Integer |
getPreferredHeight()
Returns cached preferred height field value.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
protected java.lang.Integer |
getRowsPerColumn()
Returns cached rows per column amount field value.
|
ListSelectionStyle |
getSelectionStyle()
Returns list selection style.
|
StyleId |
getStyleId()
Returns component style ID.
|
protected ToolTipProvider<? extends WebList> |
getToolTipProvider()
Returns custom WebLaF tooltip provider.
|
void |
installUI(javax.swing.JComponent c)
Installs UI in the specified component.
|
boolean |
isScrollToSelection()
Returns whether to scroll list down to selection automatically or not.
|
boolean |
isSelectOnHover()
Returns whether or not cells should be selected on hover.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
java.awt.Shape |
provideShape()
Returns component shape.
|
void |
redrawList()
Requests full list update.
|
void |
requestLayoutStateUpdate()
Force list to update layout.
|
void |
setMargin(java.awt.Insets margin)
Sets new margin.
|
void |
setPadding(java.awt.Insets padding)
Sets new padding.
|
void |
setPainter(Painter painter)
Sets list painter.
|
void |
setScrollToSelection(boolean scroll)
Sets whether to scroll list down to selection automatically or not.
|
void |
setSelectionStyle(ListSelectionStyle style)
Sets list selection style.
|
void |
setSelectOnHover(boolean select)
Sets whether or not cells should be selected on hover.
|
StyleId |
setStyleId(StyleId id)
Sets new component style ID.
|
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls UI from the specified component.
|
protected void |
validateListLayout()
Perform list layout validation.
|
convertRowToY, convertYToRow, createFocusListener, createListDataListener, createListSelectionListener, createMouseInputListener, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, getCellBounds, getRowHeight, indexToLocation, installDefaults, installKeyboardActions, installListeners, locationToIndex, maybeUpdateLayoutState, paintCell, selectNextIndex, selectPreviousIndex, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, updateLayoutStatepublic static final int heightChanged
public static final int widthChanged
protected ListSelectionStyle selectionStyle
protected boolean selectOnHover
protected boolean scrollToSelection
protected javax.swing.event.ListSelectionListener selectionTracker
protected ListItemHoverBehavior hoverCellTracker
@DefaultPainter(value=ListPainter.class) protected IListPainter painter
protected java.awt.Insets margin
protected java.awt.Insets padding
protected int hoverIndex
public 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 StyleId getStyleId()
StyleablegetStyleId in interface Styleablepublic StyleId setStyleId(StyleId id)
StyleablesetStyleId in interface Styleableid - custom component style IDpublic java.awt.Shape provideShape()
ShapeProviderprovideShape in interface ShapeProviderpublic java.awt.Insets getMargin()
MarginSupportgetMargin in interface MarginSupportpublic void setMargin(java.awt.Insets margin)
MarginSupportnull can be provided to set an empty [0,0,0,0] margin.setMargin in interface MarginSupportmargin - new marginpublic java.awt.Insets getPadding()
PaddingSupportgetPadding in interface PaddingSupportpublic void setPadding(java.awt.Insets padding)
PaddingSupportnull can be provided to set an empty [0,0,0,0] padding.setPadding in interface PaddingSupportpadding - new paddingpublic Painter getPainter()
public void setPainter(Painter painter)
painter - new list painterpublic int getHoverIndex()
public ListSelectionStyle getSelectionStyle()
public void setSelectionStyle(ListSelectionStyle style)
style - list selection stylepublic boolean isSelectOnHover()
public void setSelectOnHover(boolean select)
select - whether or not cells should be selected on hoverpublic boolean isScrollToSelection()
public void setScrollToSelection(boolean scroll)
scroll - whether to scroll list down to selection automatically or notpublic void requestLayoutStateUpdate()
public javax.swing.CellRendererPane getCellRendererPane()
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicListUIprotected void validateListLayout()
public void redrawList()
protected java.lang.Integer getLayoutOrientation()
protected java.lang.Integer getListHeight()
protected java.lang.Integer getListWidth()
protected java.lang.Integer getColumnCount()
protected java.lang.Integer getRowsPerColumn()
protected java.lang.Integer getPreferredHeight()
protected <T> T getBasicListUIValue(java.lang.String field)
T - field typefield - field nameprotected ToolTipProvider<? extends WebList> getToolTipProvider()
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.basic.BasicListUI