public static class IlvJTable.DefaultToolTipPolicy extends Object implements IlvJTable.ToolTipPolicy
DefaultToolTipPolicy
implements a default tooltip
strategy for a JTable
. This policy creates a single
tooltip per row that is a formatted list of the column headers of the
table and the cell values. The tooltip is positioned just below the
current row.Constructor and Description |
---|
DefaultToolTipPolicy()
Creates an instance of
DefaultToolTipPolicy . |
Modifier and Type | Method and Description |
---|---|
Point |
getToolTipLocation(IlvJTable table,
MouseEvent event,
int rowIndex,
int columnIndex)
Returns the tooltip location in the coordinate system of the table.
|
String |
getToolTipText(IlvJTable table,
MouseEvent event,
IlvHierarchyNode row,
String value,
int rowIndex,
int columnIndex)
Returns the string to be used as the tooltip for the specified mouse
event.
|
public DefaultToolTipPolicy()
DefaultToolTipPolicy
.public String getToolTipText(IlvJTable table, MouseEvent event, IlvHierarchyNode row, String value, int rowIndex, int columnIndex)
getToolTipText
in interface IlvJTable.ToolTipPolicy
table
- The table.event
- The mouse event that caused the
ToolTipManager
to show the tooltip.row
- The row that the mouse is over. The type of the
row
matches the row organization of the
Gantt configuration of which the table is a member. In
other words, if the
row type of
the Gantt configuration is
ACTIVITY_ROWS
,
then the row
will be an
IlvActivity
. Otherwise, the
rowtype of
the Gantt configuration is
RESOURCE_ROWS
and the row
will be an
IlvResource
.value
- The text value being rendered in the table cell at the
mouse position.rowIndex
- The index of the row at the mouse position.columnIndex
- The index of the column at the mouse position.public Point getToolTipLocation(IlvJTable table, MouseEvent event, int rowIndex, int columnIndex)
getToolTipLocation
in interface IlvJTable.ToolTipPolicy
table
- The table.event
- The mouse event that caused the
ToolTipManager
to show the tooltip.rowIndex
- The index of the row at the mouse position.columnIndex
- The index of the column at the mouse position.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.