Class DataTipManager
java.lang.Object
org.nuiton.jaxx.widgets.extra.datatips.DataTipManager
public class DataTipManager
extends java.lang.Object
DataTipManager provides data tips for tree, table and list components. Whenever the mouse cursor is
over a cell whose content is partially hidden a popup with the complete cell content is shown.
The cell content can be hidden because it is clipped at either the parent component bounds (e.g. scrollpane) or at
the cell bounds (e.g. table row height is too small).-
Method Summary
Modifier and Type Method Description static DataTipManagerget()voidhandleEventFromDataTipComponent(java.awt.event.MouseEvent mouseEvent)booleanhandleEventFromParentComponent(java.awt.event.MouseEvent mouseEvent)voidregister(javax.swing.JList list)Enable data tips for a list component.voidregister(javax.swing.JTable table)Enable data tips for a list component.voidregister(javax.swing.JTree tree)Enable data tips for a tree component.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
get
- Returns:
- the single, shared instance of the DataTipmanager
-
register
public void register(javax.swing.JList list)Enable data tips for a list component.- Parameters:
list- the list which should be enhanced with data tips.
-
register
public void register(javax.swing.JTree tree)Enable data tips for a tree component.- Parameters:
tree- the tree which should be enhanced with data tips.
-
register
public void register(javax.swing.JTable table)Enable data tips for a list component.- Parameters:
table- the table which should be enhanced with data tips.
-
handleEventFromParentComponent
public boolean handleEventFromParentComponent(java.awt.event.MouseEvent mouseEvent) -
handleEventFromDataTipComponent
public void handleEventFromDataTipComponent(java.awt.event.MouseEvent mouseEvent)
-