Bug 753826 - need API to clear just the message bar at top of UI
Summary: need API to clear just the message bar at top of UI
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-14 16:04 UTC by John Mazzitelli
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description John Mazzitelli 2011-11-14 16:04:23 UTC
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.