next up previous NU-CCS-99-04.ps [ Readme | Copyright | Tutorial | Download | Feedback ]


Next: The Wrapper Class Up: Uncovering the BeanBox Design Previous: How Does the BeanBox

The BeanBox Class

The BeanBox class is at the heart of the BDK. It is responsible for almost every interaction with the user. Even for interactions not under its direct responsibility, the BeanBox is responsible for delegating them to some other object. An instance of the BeanBox is created by the BeanBoxFrame, it is returned by the getTopBox() method, and if there are no other BeanBox instances, by the getCurrentBeanBox() method. The BeanBoxFrame delegates menu-action events to the current BeanBox. The current BeanBox then responds to these events by one of three kinds of actions:

The BeanBox is also a BeanContextProxy. Its BeanContext peer is an instance of the BeanContextServices class that provides the method tracing service.



David H. Lorenz
3/17/2000