InteractionListener

Allows the interactions between the wrapper and the underlying domain object to be observed.

API

InteractionListener.java
interface InteractionListener {
  void objectTitleRead(ObjectTitleEvent ev)     (1)
  void objectPersisted(ObjectValidityEvent ev)     (2)
  void propertyVisible(PropertyVisibilityEvent ev)     (3)
  void propertyUsable(PropertyUsabilityEvent ev)     (4)
  void propertyAccessed(PropertyAccessEvent ev)     (5)
  void propertyModified(PropertyModifyEvent ev)     (6)
  void collectionVisible(CollectionVisibilityEvent ev)     (7)
  void collectionUsable(CollectionUsabilityEvent ev)     (8)
  void collectionAccessed(CollectionAccessEvent ev)     (9)
  void collectionMethodInvoked(CollectionMethodEvent interactionEvent)     (10)
  void actionVisible(ActionVisibilityEvent interactionEvent)     (11)
  void actionUsable(ActionUsabilityEvent ev)     (12)
  void actionArgument(ActionArgumentEvent ev)     (13)
  void actionInvoked(ActionInvocationEvent ev)     (14)
}
1 objectTitleRead(ObjectTitleEvent)

The title was read.

2 objectPersisted(ObjectValidityEvent)

The object was persisted (or an attempt to persist it was made).

3 propertyVisible(PropertyVisibilityEvent)

A check was made to determine if a property was visible.

4 propertyUsable(PropertyUsabilityEvent)

A check was made to determine if a property was usable.

5 propertyAccessed(PropertyAccessEvent)

A property was read.

6 propertyModified(PropertyModifyEvent)

A property was modified (or an attempt to modify it was made)

7 collectionVisible(CollectionVisibilityEvent)

A check was made to determine if a collection was visible.

8 collectionUsable(CollectionUsabilityEvent)

A check was made to determine if a collection was usable.

9 collectionAccessed(CollectionAccessEvent)

A collection was read.

10 collectionMethodInvoked(CollectionMethodEvent)

A method of a collection (such as isEmpty() or size() ) has been invoked.

11 actionVisible(ActionVisibilityEvent)

A check was made to determine if an action was visible.

12 actionUsable(ActionUsabilityEvent)

A check was made to determine if an action was usable.

13 actionArgument(ActionArgumentEvent)

A check was made as to whether an argument proposed for an action was valid.

14 actionInvoked(ActionInvocationEvent)

An action was invoked (or an attempt to invoke it was made).

Members

objectTitleRead(ObjectTitleEvent)

The title was read.

objectPersisted(ObjectValidityEvent)

The object was persisted (or an attempt to persist it was made).

propertyVisible(PropertyVisibilityEvent)

A check was made to determine if a property was visible.

propertyUsable(PropertyUsabilityEvent)

A check was made to determine if a property was usable.

propertyAccessed(PropertyAccessEvent)

A property was read.

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

propertyModified(PropertyModifyEvent)

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.

collectionVisible(CollectionVisibilityEvent)

A check was made to determine if a collection was visible.

Will be fired prior to #collectionUsable(CollectionUsabilityEvent) .

collectionUsable(CollectionUsabilityEvent)

A check was made to determine if a collection was usable.

Will be fired prior to either #collectionAccessed(CollectionAccessEvent)

collectionAccessed(CollectionAccessEvent)

A collection was read.

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

collectionMethodInvoked(CollectionMethodEvent)

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 CollectionMethodEvent#getDomainObject() still available, however).

actionVisible(ActionVisibilityEvent)

A check was made to determine if an action was visible.

Will be fired prior to #actionUsable(ActionUsabilityEvent) .

actionUsable(ActionUsabilityEvent)

A check was made to determine if an action was usable.

Will be fired prior to #actionArgument(ActionArgumentEvent) .

actionArgument(ActionArgumentEvent)

A check was made as to whether an argument proposed for an action was valid.

Will be fired prior to #actionInvoked(ActionInvocationEvent) .

actionInvoked(ActionInvocationEvent)

An action was invoked (or an attempt to invoke it was made).