org.nakedobjects.plugins.headless.applib.listeners
Class InteractionAdapter

java.lang.Object
  extended by org.nakedobjects.plugins.headless.applib.listeners.InteractionAdapter
All Implemented Interfaces:
InteractionListener

public class InteractionAdapter
extends java.lang.Object
implements InteractionListener

Provides no-op implementations of each of the methods within InteractionListener, to simplify the creation of new listeners.


Constructor Summary
InteractionAdapter()
           
 
Method Summary
 void actionArgument(ActionArgumentEvent ev)
          A check was made as to whether an argument proposed for an action was valid.
 void actionInvoked(ActionInvocationEvent ev)
          An action was invoked (or an attempt to invoke it was made).
 void actionUsable(ActionUsabilityEvent ev)
          A check was made to determine if an action was usable.
 void actionVisible(ActionVisibilityEvent interactionEvent)
          A check was made to determine if an action was visible.
 void collectionAccessed(CollectionAccessEvent ev)
          A collection was read.
 void collectionAddedTo(CollectionAddToEvent ev)
          An object was added to the collection (or an attempt to add it was made).
 void collectionMethodInvoked(CollectionMethodEvent interactionEvent)
          A method of a collection (such as isEmpty() or size()) has been invoked.
 void collectionRemovedFrom(CollectionRemoveFromEvent ev)
          An object was removed from the collection (or an attempt to remove it was made).
 void collectionUsable(CollectionUsabilityEvent ev)
          A check was made to determine if a collection was usable.
 void collectionVisible(CollectionVisibilityEvent ev)
          A check was made to determine if a collection was visible.
 void objectPersisted(ObjectValidityEvent ev)
          The object was persisted (or an attempt to persist it was made).
 void objectTitleRead(ObjectTitleEvent ev)
          The title was read.
 void propertyAccessed(PropertyAccessEvent ev)
          A property was read.
 void propertyModified(PropertyModifyEvent ev)
          A property was modified (or an attempt to modify it was made)
 void propertyUsable(PropertyUsabilityEvent ev)
          A check was made to determine if a property was usable.
 void propertyVisible(PropertyVisibilityEvent ev)
          A check was made to determine if a property was visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionAdapter

public InteractionAdapter()
Method Detail

propertyVisible

public void propertyVisible(PropertyVisibilityEvent ev)
Description copied from interface: InteractionListener
A check was made to determine if a property was visible.

Specified by:
propertyVisible in interface InteractionListener

propertyUsable

public void propertyUsable(PropertyUsabilityEvent ev)
Description copied from interface: InteractionListener
A check was made to determine if a property was usable.

Specified by:
propertyUsable in interface InteractionListener

propertyAccessed

public void propertyAccessed(PropertyAccessEvent ev)
Description copied from interface: InteractionListener
A property was read.

Unlike most other events, a PropertyAccessEvent will never have been vetoed (that is, InteractionEvent.isVeto() will always be false).

Specified by:
propertyAccessed in interface InteractionListener

propertyModified

public void propertyModified(PropertyModifyEvent ev)
Description copied from interface: InteractionListener
A property was modified (or an attempt to modify it was made)

Use PropertyModifyEvent.getProposed() to determine whether the property was being set or cleared.

Specified by:
propertyModified in interface InteractionListener

collectionVisible

public void collectionVisible(CollectionVisibilityEvent ev)
Description copied from interface: InteractionListener
A check was made to determine if a collection was visible.

Will be fired prior to InteractionListener.collectionUsable(CollectionUsabilityEvent).

Specified by:
collectionVisible in interface InteractionListener

collectionUsable

public void collectionUsable(CollectionUsabilityEvent ev)
Description copied from interface: InteractionListener
A check was made to determine if a collection was usable.

Will be fired prior to either InteractionListener.collectionAccessed(CollectionAccessEvent) or InteractionListener.collectionAddedTo(CollectionAddToEvent) or InteractionListener.collectionRemovedFrom(CollectionRemoveFromEvent).

Specified by:
collectionUsable in interface InteractionListener

collectionAccessed

public void collectionAccessed(CollectionAccessEvent ev)
Description copied from interface: InteractionListener
A collection was read.

Unlike most other events, a CollectionAccessEvent will never have been vetoed (that is, InteractionEvent.isVeto() will always be false).

Specified by:
collectionAccessed in interface InteractionListener

collectionAddedTo

public void collectionAddedTo(CollectionAddToEvent ev)
Description copied from interface: InteractionListener
An object was added to the collection (or an attempt to add it was made).

Specified by:
collectionAddedTo in interface InteractionListener

collectionRemovedFrom

public void collectionRemovedFrom(CollectionRemoveFromEvent ev)
Description copied from interface: InteractionListener
An object was removed from the collection (or an attempt to remove it was made).

Specified by:
collectionRemovedFrom in interface InteractionListener

collectionMethodInvoked

public void collectionMethodInvoked(CollectionMethodEvent interactionEvent)
Description copied from interface: InteractionListener
A method of a collection (such as isEmpty() or size()) has been invoked.

Unlike the other methods in this interface, the source of these events will be an instance of a Collection (such as java.util.List) rather than the domain object. (The domain object is {@link CollectionMethodEvent#getDomainObject() still available, however).

Specified by:
collectionMethodInvoked in interface InteractionListener

actionVisible

public void actionVisible(ActionVisibilityEvent interactionEvent)
Description copied from interface: InteractionListener
A check was made to determine if an action was visible.

Will be fired prior to InteractionListener.actionUsable(ActionUsabilityEvent).

Specified by:
actionVisible in interface InteractionListener

actionUsable

public void actionUsable(ActionUsabilityEvent ev)
Description copied from interface: InteractionListener
A check was made to determine if an action was usable.

Will be fired prior to InteractionListener.actionArgument(ActionArgumentEvent).

Specified by:
actionUsable in interface InteractionListener

actionArgument

public void actionArgument(ActionArgumentEvent ev)
Description copied from interface: InteractionListener
A check was made as to whether an argument proposed for an action was valid.

Will be fired prior to InteractionListener.actionInvoked(ActionInvocationEvent).

Specified by:
actionArgument in interface InteractionListener

actionInvoked

public void actionInvoked(ActionInvocationEvent ev)
Description copied from interface: InteractionListener
An action was invoked (or an attempt to invoke it was made).

Specified by:
actionInvoked in interface InteractionListener

objectPersisted

public void objectPersisted(ObjectValidityEvent ev)
Description copied from interface: InteractionListener
The object was persisted (or an attempt to persist it was made).

Specified by:
objectPersisted in interface InteractionListener

objectTitleRead

public void objectTitleRead(ObjectTitleEvent ev)
Description copied from interface: InteractionListener
The title was read.

Specified by:
objectTitleRead in interface InteractionListener


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