Show TOC

DEMO_CONTEXT_MENU_STATICLocate this document in the navigation structure

Use

The example application DEMO_CONTEXT_MENU_STATIC demonstrates what options are available in the static variant of the context menu.

A Table with flight information is displayed in the example application. There are two context menus that have been declared static. The contextMenuBehaviour is set to provide in all columns in FLIGHTS_TABLE, and BOOK_MENU is entered as the contextMenuId. This means that the BOOK_MENU context menu is displayed when the user opens the context menu on the cell editor, the column header, or on the column itself.

The default value for contextMenuBehaviour is inherit. This means that the parent search continues until a parent is found that is a provider. The other context menu is used on the DETAILS_GROUP Group (and therefore everywhere within this Group too).

You do not actually have to define an implementation in WDDOONCONTEXTMENU at all. In this application there is one there anyhow since this is required for the RadioButton s. The Hook method checks what seats are still available for which classes ( economy , business , first ), since the option for booking is only available if there are free seats. The lead selection is also set on any buttons the user has clicked.

The application developer then only has to implement the relevant Actionhandler methods.