Class globals canvas MFD_Generic PFD_Page
Functions
addMenuItem
Add an item to a menu Params: menu button id (that is set in controls/PFD/button-pressed by the model) title of the menu for the label page that will be selected when pressed The corresponding menu for the selected page will automatically be loaded
clearMenu
Clear all items from the menu. Use-case is where they may be a hierarchy of menus within the same page.
notifyButton
Perform action when button is pushed
offdisplay
notify the page that it is going off display; use to clean up any created elements or perform any other required functions
ondisplay
notify the page that it is being displayed. use to load any static framework or perform one time initialisation
setVisible
Makes a page visible. It is the responsibility of the caller to manage the visibility of pages - i.e. to make a page that is currenty visible not visible before making a new page visible, however more than one page could be visible - but only one set of menu buttons can be active so if two pages are visible (e.g. an overlay) then when the overlay removed it would be necessary to call setVisible on the base page to ensure that the menus are setup
std_callbackfn
Standard callback for buttons, causing the appropriate page to be displayed
std_displayfn
Standard display function for buttons, displaying the text and making visible
update
base method for update; this can be overridden per page instance to provide update of the elements on display (e.g. to display updated properties)