Bean Works Architecture
GUI widget classes
Bean Works provides several classes that you can use to
enhance the component's graphical user interface:
- AboutBox
is a simple subclass of java.awt.Dialog that is used to
create an "About..." box for your component.
You specify the information to go in the about box
through the controller rather than using this class
directly. By default, the about box contains the
application name, version, and copyright that you specify
in the resource file.
- TMenuBar
is a subclass of java.awt.MenuBar that provides setters
and getters for application menus (such as file, edit and
view menus). This enables developers to override the
default behavior.
- TStatusBar
is a simple subclass of java.awt.Panel that is used to
create a Status bar that runs across the bottom of a
component window. You can specify a string to display in
the Status window. The default string displayed is "Component
Ready" where Component is the application
name.
- TToolBar
acts as a container for a set of tool buttons that can be
displayed and managed by the component controller. The
tool bar also supports flyover help for each button on
the bar. The framework provides a default toolbar with
default functions. You can add your own tool buttons to
the presentations for your components.
- TToolButton
is a subclass of java.awt.Canvas that you can use to
create individual buttons for a toolbar. You specify an
image and, optionally, a flyover help string, and wire
the button to an action. The button can be either a
regular or a toggle button, and can be enabled or
disabled under circumstances you specify.
Copyright ©
Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved.