Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::logging::table::LogTooltipHelper Class Reference

List of all members.

Static Public Member Functions

void setToolTip (JComponent c, String text, int colWidth)

Detailed Description

This class helps formatting the tooltip as desired.

This class has been written because the same method is called in different places.

Author:
acaproni


Member Function Documentation

void alma::acs::logging::table::LogTooltipHelper::setToolTip JComponent  c,
String  text,
int  colWidth
[inline, static]
 

Format the string before setting the tooltip for the given component The tooltip is shown only if the text is not visible (i.e. the num. of displayed chars for the column containing the text is less then the given text).

To show the string as multi-line it is transformed in HTML and
are replaced by <BR>. To show strings containing HTML and/or XML the <PRE> tag is used (for this reason existing < and > in the original string are replaced by < and >)

Parameters:
c The component to set the tooltip
text The string to display in the tooltip
colWidth The max number of chars for each line of the tooltip


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:59 2009 for ACS Java API by doxygen 1.3.8