org.nakedobjects.applib.events
Class ActionArgumentEvent
java.lang.Object
java.util.EventObject
org.nakedobjects.applib.events.InteractionEvent
org.nakedobjects.applib.events.ValidityEvent
org.nakedobjects.applib.events.ActionArgumentEvent
- All Implemented Interfaces:
- Serializable, ProposedHolderEvent
public class ActionArgumentEvent
- extends ValidityEvent
- implements ProposedHolderEvent
Represents a check as to whether a particular argument for an action is valid or not.
If InteractionEvent.getReason() is not null then provides the reason why the argument is invalid;
otherwise the argument is valid.
Called once per argument, and before ActionInvocationEvent.
- See Also:
- Serialized Form
| Methods inherited from class org.nakedobjects.applib.events.InteractionEvent |
advised, getAdvisorClass, getClassName, getClassNaturalName, getIdentifier, getMemberName, getMemberNaturalName, getMemberParameterNames, getMemberParameterNaturalNames, getReason, isVeto |
ActionArgumentEvent
public ActionArgumentEvent(Object source,
Identifier actionIdentifier,
Object[] args,
int position)
getArgs
public Object[] getArgs()
getPosition
public int getPosition()
- The position (0-based) of the invalid argument.
- Returns:
getProposed
public Object getProposed()
- Specified by:
getProposed in interface ProposedHolderEvent
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.