org.nuiton.widget.datatips
Class DataTipManager

java.lang.Object
  extended by org.nuiton.widget.datatips.DataTipManager

public class DataTipManager
extends 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
static DataTipManager get()
           
 void handleEventFromDataTipComponent(MouseEvent mouseEvent)
           
 boolean handleEventFromParentComponent(MouseEvent mouseEvent)
           
 void register(JList list)
          Enable data tips for a list component.
 void register(JTable table)
          Enable data tips for a list component.
 void register(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 Detail

get

public static DataTipManager get()
Returns:
the single, shared instance of the DataTipmanager

register

public void register(JList list)
Enable data tips for a list component.

Parameters:
list - the list which should be enhanced with data tips.

register

public void register(JTree tree)
Enable data tips for a tree component.

Parameters:
tree - the tree which should be enhanced with data tips.

register

public void register(JTable table)
Enable data tips for a list component.

Parameters:
table - the table which should be enhanced with data tips.

handleEventFromParentComponent

public boolean handleEventFromParentComponent(MouseEvent mouseEvent)

handleEventFromDataTipComponent

public void handleEventFromDataTipComponent(MouseEvent mouseEvent)


Copyright © 2004-2010 CodeLutin. All Rights Reserved.