Static Public Member Functions | |
| static void | setToolTip (JComponent c, String text, int colWidth) |
This class helps formatting the tooltip as desired.
This class has been written because the same method is called in different places.
| static 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 >)
| 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 |
1.6.2