Bug 753826 - need API to clear just the message bar at top of UI
need API to clear just the message bar at top of UI
Status: NEW
Product: RHQ Project
Classification: Other
Component: Core UI (Show other bugs)
4.2
Unspecified Unspecified
low Severity low (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-14 11:04 EST by John Mazzitelli
Modified: 2011-11-14 11:04 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description John Mazzitelli 2011-11-14 11:04:23 EST
We need an API to clear the message bar at the top of the UI, but not clear out any messages from the message center (i.e. need an API that does the same thing as when you double-click the message in the message bar - just remove the message from the screen).

CoreGUI.getMessageCenter().reset() will clear all messages in the message center, as well as clearing the message bar, so it would be too heavy handed.

CoreGUI.getMessageCenter().notify(new Message("", Message.Severity.Blank,EnumSet.of(Message.Option.Transient)));

is the only way I know of to clear just the message bar. It is obviously quite convoluted, so we should really add an intuitive API for clearing the message bar, e.g.:

CoreGUI.getMessageBar().clear();

Note You need to log in before you can comment on or make changes to this bug.