org.nakedobjects.applib.events
Class ValidityEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.nakedobjects.applib.events.InteractionEvent
          extended by org.nakedobjects.applib.events.ValidityEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActionArgumentEvent, ActionInvocationEvent, CollectionAddToEvent, CollectionRemoveFromEvent, ObjectValidityEvent, ParseValueEvent, PropertyModifyEvent

public abstract class ValidityEvent
extends InteractionEvent

Represents a check to determine whether a proposed change is valid.

Multiple subclasses, including:

If InteractionEvent.getReason() is null, then is usable; otherwise is disabled.

See Also:
AccessEvent, VisibilityEvent, UsabilityEvent, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ValidityEvent(java.lang.Object source, Identifier identifier)
           
 
Method Summary
 java.lang.Object getSource()
          The domain object (pojo) against which the interaction occurred.
 
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
 

Constructor Detail

ValidityEvent

public ValidityEvent(java.lang.Object source,
                     Identifier identifier)
Method Detail

getSource

public java.lang.Object getSource()
Description copied from class: InteractionEvent
The domain object (pojo) against which the interaction occurred.

Overrides:
getSource in class InteractionEvent


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.