Overriding the UcompOS Default MenuBar Item
Posted by Edward Mansouri on February 8, 2010 · Leave a Comment
The Menu Bar on the UcompOS Portal by default has a built-in menu item as displayed below:
You can override this default Menu Bar item in one of two ways.
First, in the application manifest for a particular application, you can specify the model for the Menu Bar that should be present when the application is in focus.
A sample Menu Bar model for a very simple File Management application may look something like this:
<menu> <menuitem label="File"> <menuitem label="Open" data="open"/> <menuitem label="Close" data="close"/> <menuitem label="Quit" icon="http://apps.ucompass.com/exit.png" data="quit"/> </menuitem> </menu>
As a relevant aside, the UcompOSWindowProxy has a setMenuBar(); method that accepts an XML object as input of the same form shown above. This lets you specify the model for the Menu Bar that should be in display while a particular window is in focus.
So you can have multiple windows spawned by the same UcompOS application all with different Menu Bar implementations. This is a very important capability.
What if you want to override the default UcompOS menu item and have 100% unique branding.
You can do this by building a baseMenu model into the application manifest.
For instance, my Educator 2 Menu Bar default Menu Bar item looks like this:
Here is the relevant code from my Application Manifest that articulates the base menu item:
<baseMenu> <menuitem label="" icon="http://applications.ucompass.com/Educator2PortalFoundation/images/Educator2_Menu_Bar_Icon.png"> <menuitem label="About Educator 2" data="About Educator 2"/> <menuitem type="separator"/> <menuitem label="Logout" data="Logout" /> </menuitem> </baseMenu>
The setMenuBar(); method of the UcompOSMenuBarProxy class also has a second Boolean parameter named baseMenu. When you set a Menu Bar and pass true as the value for this parameter, that model will override the default UcompOS MenuBar implementation.
Overriding the default UcompOS MenuBar is just one of many ways to create a 100% unique and customized experience for users of your Rich Portal Application.
Filed under UcompOSMenuBarProxy · Tagged with Default Menu Bar Item
Current Version
0.5.1 BetaMost Recent Twitter Update
- UcompOS Rich Experience Framework is now in Beta - http://blog.ucompass.com/?p=503 12:17:33 PM May 18, 2010 from web
UcompOS Resources
- UcompOS Bug Tracking Bugzilla implementation for the UcompOS Rich Experience Framework
- UcompOS Forum DIscussion board for discussing the UcompOS Rich Experience Framework
- UcompOS SDK ASDocs ActionScript 3 API Documentation for the UcompOS SDK
- UcompOS SDK JSDocs JavaScript Documentation for the UcompOS SDK
- UcompOS Wiki Wiki for the UcompOS Rich Experience Framework
This Month’s Posts
September 2010 M T W T F S S « May 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Archives
- May 2010 (1)
- April 2010 (2)
- March 2010 (7)
- February 2010 (3)
- January 2010 (12)
- December 2009 (17)
Developer Resources
Categories
- General Education (1)
- Flex (1)
- Proxy Components (27)
- AbstractProxyComponent (2)
- UcompOSAIRProxy (2)
- UcompOSAlertProxy (2)
- UcompOSArtifactContainerProxy (4)
- UcompOSArtifactProxy (9)
- UcompOSBrowserWindowProxy (2)
- UcompOSDialogueProxy (2)
- UcompOSDockProxy (2)
- UcompOSGlobalManagerProxy (8)
- UcompOSHTMLProxy (3)
- UcompOSKeyboardProxy (1)
- UcompOSMenuBarProxy (4)
- UcompOSStyleProxy (3)
- UcompOSWindowProxy (4)
- UcompOS Applications (11)
- UcompOS Architecture (12)
- Event Architecture (5)
- Localization (1)
- Services Dictionaries (5)
- UcompOS Portal (14)
- Application Dock (3)
- UcompOS Project Site (4)
- UcompOS SDK (15)
- General Education (1)


