public class BeanActionSupport extends BeanAction
gp.example.actions.beans.SmileAction)| Constructor and Description |
|---|
BeanActionSupport(java.lang.Class capabilityClass)
Constructor to use if you don't need to specify the selection mode.
|
BeanActionSupport(java.lang.Class capabilityClass,
int selectionMode)
Constructor that allows to specify the selectionMode
The selection mode determines how many nodes must be selected to enable the
action.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
performCapability(GPNode node,
Capability capability)
Performs the associated capability for the given node.
|
cookieClasses, createJButton, getHelpCtx, getName, iconResource, mode, performAction, surviveFocusChangepublic BeanActionSupport(java.lang.Class capabilityClass)
throws java.lang.IllegalArgumentException
capabilityClass - the class of the corresponding capabilityjava.lang.IllegalArgumentExceptionBeanAction.BeanAction(Class)public BeanActionSupport(java.lang.Class capabilityClass,
int selectionMode)
throws java.lang.IllegalArgumentException
org.openide.util.actions.CookieActioncapabilityClass - the class of the corresponding capabilityselectionMode - see fields of
org.openide.util.actions.CookieActionjava.lang.IllegalArgumentExceptionprotected void performCapability(GPNode node, Capability capability) throws java.lang.reflect.InvocationTargetException
performCapability in class BeanActionnode - the node for which the capability is performedcapability - the capability to performjava.lang.reflect.InvocationTargetException