ActionManager
Purpose: To make it as easy as possible to create
menubars, toolbars, and to handle Swing events in an application.
Current status: Working, although there are a few things
missing.
Features:
- Automatically builds menu bars.
- Automatically builds popup-menus.
- Provides an extended JPopupMenu that has the ability to install itself on a component.
- Automatically builds toolbars.
- Automatically builds (extended) JButtons.
- Automatically sets tooltips.
- Provides the ability to dynamically change event handling code for a particular event during runtime.
- It is tolerant against malformatted resources (no NullPointerExceptions while building the menu/tool bar)
- Supports keyboard accelerators
All that's needed is a properties file or a ResourceBundle that
defines the actions and the menu bar.
TODO:
There are still a few things to do before it can be considered "1.0.0
software".
- More custumizable toolbar
- Menu shortcuts (mnemonics, as opposed to keyboard accelerators)
- The action manager itself is not yet localized (specifically, the error messages in exceptions that the action manager throws are in english). This will of course be fixed.
- Change the name of the thing (ActionGenerator perhaps?)
- Other stuff
BUGS:
Source code: The source code is on the CVS. The relevant
package is org.jos.experimental.peterschuller.util.app.actionmanager.
Misc:
- 1999-07-25: Icon loading now works on JDK1.2 (it didn't before, because of the changed behavior of System.getSystemResource()).
This page was last changed on: 1999-08-30
-- PeterSchuller (scode@scode.webprovider.com)
Content of these pages are owned and copyrighted by the poster.
|
Hosted by:
|
|