JeeWiz Home  
The Model-Driven System Builder

JeeWiz Architect's Guide
 
Contents  >   15.  'Screen' Reference
 


15.11 MenuItem Object

Used on
menu
menuItem
tabMenu
DescriptionThis is a menu item - used in menus and menu tabs.
Contained
Lists
1
Name  childItems
Type  menuItem
Description  This is the children for the menu item. Although this was originally a String List of the names of menu items, this now contains the child menu items directly.
GenerateAllList  false
Inherited
properties
description (base property)

template (base property)

text (base property)

jwpattern (base property)

 15.11.1  Property 'name'
 15.11.2  Property 'label'
 15.11.3  Property 'title'
 15.11.4  Property 'outcome'
 15.11.5  Property 'viewId'
 15.11.6  Property 'destination'
 15.11.7  Property 'icon'
 15.11.8  Property 'type'
 15.11.9  Property 'readOnly'
 15.11.10  Property 'shown'

15.11.1  Property 'name'
DescriptionThis is the name for the menu item. The name is used as the name of the component representingn the menu item, but not necessarily its id. So
TypeString

15.11.2  Property 'label'
DescriptionThis is the label for the menu item. It should be what is displayed on the screen.
TypeString

15.11.3  Property 'title'
DescriptionThis is the title of the menu item. This will only be relevant in more unusual formats.
TypeString

15.11.4  Property 'outcome'
DescriptionThis is the outcome for the menu item. When the item is selected, it may pass an outcome value to an underlying method, or the outcome might be used directly by the navigation configuration to decide on the next page.
TypeString

15.11.5  Property 'viewId'
DescriptionThis is the viewId for the menu item. In Trinidad, data models which extend MenuModel have the concept of a view identifier. This is an identifier for a menu node. The current viewId is the identifier for the current node (if there is a current node). The other two ways of identifying a node, the key and the index. The index is the position of a node in a flat (sub)tree, ie among its peers. The key is global to the menu and is unique withing the menu. The viewId is returned, possibly dynamically, by the bean backing the node, and is unique for each menu which contains a node using the bean. Confusingly the viewId is sometimes also the to-view page identifier which will be the page that the application navigates to when selecting the menu item. This is an optional usage for viewId and not an intrinsic requirement. We use the destination property.
TypeString

15.11.6  Property 'destination'
DescriptionThis is the destination for the menu item. What page the application will navigate to, although this might be overridden depending on the outcome
TypeString

15.11.7  Property 'icon'
DescriptionThis is the icon for the menu item. Displays an icon, next to or instead of the text id supported by the rendering
TypeString

15.11.8  Property 'type'
DescriptionThis is the type for the menu item. [I don't know what this is. What's a global versus local menu item? JH]
TypeString
Defaultglobal

15.11.9  Property 'readOnly'
DescriptionThis is an indicator as to whether this item is selectable. It is unlikely that the value would be set to true globally in this way and it is far more likely that dynamic menu handling would used.
Typeboolean
Defaultfalse

15.11.10  Property 'shown'
DescriptionThis is an indicator as to whether this item is shown. As with readOnly, it is unlikely that the value would be set to false globally in this way and it is far more likely that dynamic menu handling would used; however it might be used temporarily.
Typeboolean
Defaulttrue
 


Copyright (c) 2001-2008 New Technology/enterprise Ltd.