com.jaxfront.core.rule
Class UIAction
java.lang.Object
com.jaxfront.core.rule.AbstractAction
com.jaxfront.core.rule.UIAction
- All Implemented Interfaces:
- IAction, java.io.Serializable, java.lang.Cloneable
public class UIAction
- extends AbstractAction
Defines an ui action (visual action) which will invoke any kind of method on
any visualizer.
- Version:
- 1.60
- See Also:
- Serialized Form
Constructor Summary |
UIAction(Document DOM,
Type sourceType,
Type xuiType,
java.lang.String targetXPath,
java.lang.String methodName,
MethodParameter[] params,
java.lang.String className)
Creates a ui action based on a document, a source type,an xpath, a
methodName and the parameters to invoke. |
Methods inherited from class com.jaxfront.core.rule.AbstractAction |
checkAction, clone, getDOM, getInverseAction, getSource, getTargetTypes, getTargetXPath, getUserAction, isEmpty, isUsingUserAction, perform, perform, perform, performInverse, setInverseAction, setSource, setTargetXPath, setUseActionTargetAsBase |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
METHOD_SET_CODESET_VALUES
public static final java.lang.String METHOD_SET_CODESET_VALUES
- See Also:
- Constant Field Values
METHOD_SET_CSS_CLASS_NAME
public static final java.lang.String METHOD_SET_CSS_CLASS_NAME
- See Also:
- Constant Field Values
UIAction
public UIAction(Document DOM,
Type sourceType,
Type xuiType,
java.lang.String targetXPath,
java.lang.String methodName,
MethodParameter[] params,
java.lang.String className)
- Creates a ui action based on a document, a source type,an xpath, a
methodName and the parameters to invoke.
- Parameters:
DOM
- JAXFront documentsourceType
- the source type of this actiontargetXPath
- the target xpathmethodName
- method name to invokeparams
- method parameters to sendclassName
- user defined action implementation class name
check
public void check(Document dom,
Type target)
throws RuleInvocationException
- Specified by:
check
in class AbstractAction
- Throws:
RuleInvocationException
getMethodName
public java.lang.String getMethodName()
- Returns the method name.
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractAction
getParameterValues
public java.lang.Object[] getParameterValues()
- Returns a list of the passing parameter values for the method to invoke.
isInversable
public boolean isInversable()
- Indicates if an action is able to invoke inverse. If all the passing
parameter values are of type Boolean. This action is inversable by
default.
- Overrides:
isInversable
in class AbstractAction
invoke
public void invoke(Document dom,
java.lang.Object target,
java.lang.Object[] values)
throws RuleInvocationException,
java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Throws:
RuleInvocationException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
release
public void release()
- Specified by:
release
in interface IAction
- Overrides:
release
in class AbstractAction
- See Also:
AbstractAction.release()