|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.headless.applib.listeners.InteractionAdapter
public class InteractionAdapter
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 |
|---|
public InteractionAdapter()
| Method Detail |
|---|
public void propertyVisible(PropertyVisibilityEvent ev)
InteractionListener
propertyVisible in interface InteractionListenerpublic void propertyUsable(PropertyUsabilityEvent ev)
InteractionListener
propertyUsable in interface InteractionListenerpublic void propertyAccessed(PropertyAccessEvent ev)
InteractionListener
Unlike most other events, a PropertyAccessEvent will never have been vetoed (that is,
InteractionEvent.isVeto() will always be false).
propertyAccessed in interface InteractionListenerpublic void propertyModified(PropertyModifyEvent ev)
InteractionListener
Use PropertyModifyEvent.getProposed() to determine whether the property was being set or
cleared.
propertyModified in interface InteractionListenerpublic void collectionVisible(CollectionVisibilityEvent ev)
InteractionListener
Will be fired prior to InteractionListener.collectionUsable(CollectionUsabilityEvent).
collectionVisible in interface InteractionListenerpublic void collectionUsable(CollectionUsabilityEvent ev)
InteractionListener
Will be fired prior to either InteractionListener.collectionAccessed(CollectionAccessEvent) or
InteractionListener.collectionAddedTo(CollectionAddToEvent) or
InteractionListener.collectionRemovedFrom(CollectionRemoveFromEvent).
collectionUsable in interface InteractionListenerpublic void collectionAccessed(CollectionAccessEvent ev)
InteractionListener
Unlike most other events, a CollectionAccessEvent will never have been vetoed (that is,
InteractionEvent.isVeto() will always be false).
collectionAccessed in interface InteractionListenerpublic void collectionAddedTo(CollectionAddToEvent ev)
InteractionListener
collectionAddedTo in interface InteractionListenerpublic void collectionRemovedFrom(CollectionRemoveFromEvent ev)
InteractionListener
collectionRemovedFrom in interface InteractionListenerpublic void collectionMethodInvoked(CollectionMethodEvent interactionEvent)
InteractionListenerUnlike 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).
collectionMethodInvoked in interface InteractionListenerpublic void actionVisible(ActionVisibilityEvent interactionEvent)
InteractionListener
Will be fired prior to InteractionListener.actionUsable(ActionUsabilityEvent).
actionVisible in interface InteractionListenerpublic void actionUsable(ActionUsabilityEvent ev)
InteractionListener
Will be fired prior to InteractionListener.actionArgument(ActionArgumentEvent).
actionUsable in interface InteractionListenerpublic void actionArgument(ActionArgumentEvent ev)
InteractionListener
Will be fired prior to InteractionListener.actionInvoked(ActionInvocationEvent).
actionArgument in interface InteractionListenerpublic void actionInvoked(ActionInvocationEvent ev)
InteractionListener
actionInvoked in interface InteractionListenerpublic void objectPersisted(ObjectValidityEvent ev)
InteractionListener
objectPersisted in interface InteractionListenerpublic void objectTitleRead(ObjectTitleEvent ev)
InteractionListener
objectTitleRead in interface InteractionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||