org.nakedobjects.plugins.headless.applib.listeners
Interface InteractionListener

All Known Implementing Classes:
InteractionAdapter

public interface InteractionListener


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.
 

Method Detail

objectTitleRead

void objectTitleRead(ObjectTitleEvent ev)
The title was read.

Parameters:
ev -

objectPersisted

void objectPersisted(ObjectValidityEvent ev)
The object was persisted (or an attempt to persist it was made).

Parameters:
ev -

propertyVisible

void propertyVisible(PropertyVisibilityEvent ev)
A check was made to determine if a property was visible.

Parameters:
ev -

propertyUsable

void propertyUsable(PropertyUsabilityEvent ev)
A check was made to determine if a property was usable.

Parameters:
ev -

propertyAccessed

void propertyAccessed(PropertyAccessEvent ev)
A property was read.

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

Parameters:
ev -

propertyModified

void propertyModified(PropertyModifyEvent ev)
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.

Parameters:
ev -

collectionVisible

void collectionVisible(CollectionVisibilityEvent ev)
A check was made to determine if a collection was visible.

Will be fired prior to collectionUsable(CollectionUsabilityEvent).

Parameters:
ev -

collectionUsable

void collectionUsable(CollectionUsabilityEvent ev)
A check was made to determine if a collection was usable.

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

Parameters:
ev -

collectionAccessed

void collectionAccessed(CollectionAccessEvent ev)
A collection was read.

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

Parameters:
ev -

collectionAddedTo

void collectionAddedTo(CollectionAddToEvent ev)
An object was added to the collection (or an attempt to add it was made).

Parameters:
ev -

collectionRemovedFrom

void collectionRemovedFrom(CollectionRemoveFromEvent ev)
An object was removed from the collection (or an attempt to remove it was made).

Parameters:
ev -

collectionMethodInvoked

void collectionMethodInvoked(CollectionMethodEvent interactionEvent)
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).

Parameters:
interactionEvent -

actionVisible

void actionVisible(ActionVisibilityEvent interactionEvent)
A check was made to determine if an action was visible.

Will be fired prior to actionUsable(ActionUsabilityEvent).

Parameters:
ev -

actionUsable

void actionUsable(ActionUsabilityEvent ev)
A check was made to determine if an action was usable.

Will be fired prior to actionArgument(ActionArgumentEvent).

Parameters:
ev -

actionArgument

void actionArgument(ActionArgumentEvent ev)
A check was made as to whether an argument proposed for an action was valid.

Will be fired prior to actionInvoked(ActionInvocationEvent).

Parameters:
ev -

actionInvoked

void actionInvoked(ActionInvocationEvent ev)
An action was invoked (or an attempt to invoke it was made).

Parameters:
ev -


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