26.7.10

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

Hierarchy-of-the-NetBeans-Platform-Action-Base-Classes

  • 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: