org.openide.util.actions |
There are several types of standard actions
that should be used for many user interactions within NetBeans.
One can use plain swing actions, or just resort to NetBeans
support based on
SystemAction and various subclasses.
|
Java Source File Name | Type | Comment |
ActionPerformer.java | Interface | Specifies how an action should be performed.
Should be implemented by classes which are able to perform an action's work
on its behalf, e.g. |
ActionsInfraHid.java | Class | Utilities for actions tests. |
AsynchronousTest.java | Class | Test general aspects of system actions. |
BooleanStateAction.java | Class | An action that can be toggled on or off. |
BooleanStateActionTest.java | Class | Test that boolean actions are in fact toggled. |
CallableSystemAction.java | Class | An action which may be called programmatically. |
CallbackSystemAction.java | Class | Action that can have a performer of the action attached to it at any time,
or changed. |
CallbackSystemActionTest.java | Class | Test CallbackSystemAction: changing performer, focus tracking. |
CookieAction.java | Class | An action
dependent on the cookies of the selected nodes. |
CookieAction2Test.java | Class | Test CookieAction functionality. |
CookieAction84636Test.java | Class | Check problem with recursive loop. |
CookieActionIsTooSlowTest.java | Class | Simulation for bug 40734. |
CookieActionTest.java | Class | Test that cookie actions are in fact sensitive to the correct cookies in the
correct numbers, and that changes to either node selection or cookies on the
selected nodes trigger a change in the selected state. |
Issue71764Test.java | Class | Tests if NodeAction initializes its listener list and resposes
to cookie changes. |
NodeAction.java | Class | A type of action that listens on change in activated nodes selection and
allows its subclasses to simply change their enabled state and handle
action invocation requests.
Whenever a list of activated nodes changes (a new
TopComponent is selected or
its internal selection changes like in
explorer)
the overriden method
NodeAction.enable is called and state of the action is updated
according to the result. |
NodeActionTest.java | Class | Test that node actions are enabled on the right nodes and track selection changes. |
Presenter.java | Interface | Provides a presentation feature for an action.
Each
SystemAction action that wants to offer a kind of presentation of itself
to the user should implement one of the inner interfaces.
For example to be presented in popup menu, an action should
implement
Presenter.Popup .
Normally actions should implement both
Presenter.Menu and
Presenter.Popup together and return the same menu item for each.
Note: implementing these interfaces yourself means that you want to
provide some sort of unusual display format, e.g. |
SystemAction.java | Class | A base class for user-visible actions.
Implements the Swing
Action interface to enable use
with the Swing action model.
An action class is a singleton, i.e. |
SystemActionTest.java | Class | Test general aspects of system actions. |