O'Reilly logo

Enterprise Curl by Paul Sheehan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required