com.alee.laf.list
Class ListToolTipProvider
java.lang.Object
com.alee.managers.tooltip.AbstractToolTipProvider<WebList>
com.alee.laf.list.ListToolTipProvider
- All Implemented Interfaces:
- ToolTipProvider<WebList>
public abstract class ListToolTipProvider
- extends AbstractToolTipProvider<WebList>
Abstract WebLaF tooltip provider for WebList component.
- Author:
- Mikle Garin
Method Summary |
java.awt.Rectangle |
getSourceBounds(WebList list,
java.lang.Object value,
int index,
int column,
boolean isSelected)
Returns custom WebLaF tooltip source bounds. |
protected java.lang.Object |
getValue(WebList list,
int index,
int column)
Returns component cell value under the specified index and column. |
protected boolean |
isSelected(WebList list,
int index,
int column)
Returns whether or not component cell is selected. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListToolTipProvider
public ListToolTipProvider()
getSourceBounds
public java.awt.Rectangle getSourceBounds(WebList list,
java.lang.Object value,
int index,
int column,
boolean isSelected)
- Description copied from interface:
ToolTipProvider
- Returns custom WebLaF tooltip source bounds.
Tooltip will be displayed relative to these bounds using provided TooltipWay.
- Parameters:
list
- component to provide tooltip forvalue
- cell valueindex
- cell indexcolumn
- cell column indexisSelected
- whether the cell is selected or not
- Returns:
- custom WebLaF tooltip source bounds
getValue
protected java.lang.Object getValue(WebList list,
int index,
int column)
- Description copied from class:
AbstractToolTipProvider
- Returns component cell value under the specified index and column.
- Specified by:
getValue
in class AbstractToolTipProvider<WebList>
- Parameters:
list
- component to retrieve cell value forindex
- cell indexcolumn
- cell column index
- Returns:
- component cell value under the specified index and column
isSelected
protected boolean isSelected(WebList list,
int index,
int column)
- Description copied from class:
AbstractToolTipProvider
- Returns whether or not component cell is selected.
- Specified by:
isSelected
in class AbstractToolTipProvider<WebList>
- Parameters:
list
- component to retrieve cell selection state forindex
- cell indexcolumn
- cell column index
- Returns:
- true if component cell is selected, false otherwise