Bug 695884
Summary: | Help About does not pop up true dialog | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Jay Shaughnessy <jshaughn> |
Component: | Core UI | Assignee: | Nobody <nobody> |
Status: | ON_DEV --- | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 4.0.0.Beta2 | CC: | hrupp |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
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: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 735475 |
Description
Jay Shaughnessy
2011-04-12 21:09:21 UTC
Code for the Logo Help MenuBarView:101 private Canvas getLogoSection() { final AboutModalWindow aboutModalWindow = new AboutModalWindow(extendLocatorId("AboutModalWindow")); HLayout logoSection = new HLayout(); logoSection.setOverflow(Overflow.VISIBLE); // NOTE: This image will either be an RHQ logo or a JON logo, but must be 80x28 Img logo = new Img("header/rhq_logo_28px.png", 80, 28); logo.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { aboutModalWindow.show(); } }); logoSection.addMember(logo); return logoSection; } Code for Help About HelpView:93 private NavigationSection buildProductSection() { NavigationItem aboutItem = new NavigationItem(new ViewName("AboutBox", MSG.view_help_section_product_about()), "[SKIN]/../actions/help.png", new ViewFactory() { public Canvas createView() { final AboutModalWindow aboutModalWindow = new AboutModalWindow(extendLocatorId("AboutModalWindow")); aboutModalWindow.setTitle(MSG.view_aboutBox_title(productInfo.getFullName())); aboutModalWindow.show(); return aboutModalWindow; } }); aboutItem.setRefreshRequired(true); return new NavigationSection(SECTION_PRODUCT_VIEW_ID, aboutItem); } They both instantiate the same AboutModalWindow via the .show() method. just that one is from a NavigationItem invoked from ViewFactory and one is from a Img clickHandler(). |