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:
- java.io.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
| Fields inherited from class java.util.EventObject |
source |
| Methods inherited from class org.nakedobjects.applib.events.InteractionEvent |
advised, getAdvisorClass, getClassName, getClassNaturalName, getIdentifier, getMemberName, getMemberNaturalName, getMemberParameterNames, getMemberParameterNaturalNames, getReason, isVeto |
| Methods inherited from class java.util.EventObject |
toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ActionArgumentEvent
public ActionArgumentEvent(java.lang.Object source,
Identifier actionIdentifier,
java.lang.Object[] args,
int position)
getArgs
public java.lang.Object[] getArgs()
getPosition
public int getPosition()
- The position (0-based) of the invalid argument.
- Returns:
getProposed
public java.lang.Object getProposed()
- Specified by:
getProposed in interface ProposedHolderEvent
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.