NetBeans Platform Actions
- The NetBeans Platform bases its actions on the Swing Action Framework.
- Ultimately, every action rests upon Swing’s Action interface.
- Simplest case:
- An action class implements the Action interface
- Straightforward:
- Extends the AbstractAction class.
- The NetBeans’ Own Base Classes for Actions
- Registry
- Actions are registered centrally in the layer file of your module, within the Actions folder.
- Instance:
- Actions can be used multiple times in different places
- Only one instance is created.
- The possibility of toolbar customization.
No comments:
Post a Comment