Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.ui.BalloonNotification Class Reference

List of all members.

Static Public Member Functions

static void removeAllActiveNotifications ()
static void showNotification (Control control, String title, String text)

Member Function Documentation

static void de.fu_berlin.inf.dpp.ui.BalloonNotification.removeAllActiveNotifications ( ) [static]

Close all currently active notification windows

It would probably suffice to only remember the last notification window, because currently all windows are displayed in the same position, overlapping each other. But if we ever manage to (FIXME) display balloon notifications in different spots, they might not overlap and should/remain.

static void de.fu_berlin.inf.dpp.ui.BalloonNotification.showNotification ( Control  control,
String  title,
String  text 
) [static]

Opens a notification window next to a control. The notification window will show the given title as the title of the balloon, The given text as the description.

The window will be hidden automatically after the value specified in the timeout expires

TODO wrap the contents so the balloon notification does not expand across two screens for a long text. OR even better: do not show long notifications. users tend to ignore them anyway!

Parameters:
controlthe control, next to where the widget will appear
titlethe title of the balloon
textthe text to display as contents
 All Classes Namespaces Files Functions Variables Enumerations