当前页面:
在线文档首页 >
NetBeans API Javadoc 5.0.0
ContextAwareAction (NetBeans Utilities API) - NetBeans API Javadoc 5.0.0
org.openide.util
Interface ContextAwareAction
- All Superinterfaces:
- Action, ActionListener, EventListener
- All Known Implementing Classes:
- CallbackSystemAction
- public interface ContextAwareAction
- extends Action
Interface which is supposed to be implemented by action which behaviour
is context dependent.
It means the created action (by method createContextAwareInstance(org.openide.util.Lookup)
is valid to the provided context, i.e. enablement status
and action performation is related to the context
(provided by the Lookup
).
The context is typically TopComponent's context.
- Since:
- 3.29
- See Also:
Utilities.actionsToPopup(javax.swing.Action[], org.openide.util.Lookup)
createContextAwareInstance
public Action createContextAwareInstance(Lookup actionContext)
- Creates action instance for provided context.