com.alee.laf.list
Class ListToolTipProvider

java.lang.Object
  extended by com.alee.managers.tooltip.AbstractToolTipProvider<WebList>
      extended by 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

Constructor Summary
ListToolTipProvider()
           
 
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 com.alee.managers.tooltip.AbstractToolTipProvider
getDelay, getDirection, getToolTip, getToolTipText, rolloverCellChanged, showTooltip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListToolTipProvider

public ListToolTipProvider()
Method Detail

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 for
value - cell value
index - cell index
column - cell column index
isSelected - 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 for
index - cell index
column - 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 for
index - cell index
column - cell column index
Returns:
true if component cell is selected, false otherwise