MenuBarManager
MenuBarManager is a service manager class that controls the appearance of an application menu and toolbar. It has functionality to create and consolidate the individual AppSubMenu classes involved in the visual representation of a menu and toolbar.
Class Variable
MenuBarManager has two class variables, one of which takes the form of the getter naming style. A getter is a private variable whose name is preceded by an underscore and has a corresponding method, named without the underscore, which returns a value. Figure 9-2 shows the code required.
The _menubar class variable is of type MenuBar, which is a Curl system class that has functionality to define and control a horizontal arrangement of pull-down menus. Within the framework, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access