Bug 753826

Summary: need API to clear just the message bar at top of UI
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: Core UIAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: low Docs Contact:
Priority: low    
Version: 4.2CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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:
Cloudforms Team: ---

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();