org.objectweb.jac.aspects.gui.web
Interface CollectionListener

All Known Subinterfaces:
TableListener
All Known Implementing Classes:
AbstractCollection, CompactList, List, Table

public interface CollectionListener

This interface defines a callbacks used when events occur on a collection.


Method Summary
 void onAddExistingToCollection()
          Called when the user wants to add an object to the collection, without creating a new one even if the collection is "autocreate".
 void onAddToCollection()
          Called when the user wants to add an object to the collection.
 void onFirst()
          Display to the first page of items
 void onLast()
          Display to the last page of items
 void onNext()
          Display the next page of items
 void onPrevious()
          Display the previous page of items
 void onRefreshCollection()
          Call when a parameter of the view has changed and the view should be refresh to take it into account.
 void onRemove(int index)
          Called when the user selects an item to remove it.
 void onRemoveFromCollection()
          Called when the user wants to remove an object to the collection.
 void onTableInvoke(int index, String methodName)
          Called when a method is called on an object belonging to the collection.
 void onView(int index)
          Called when the user selects an item to view it.
 void onViewObject(String name)
          Called when the user selects an item to view it.
 

Method Detail

onView

public void onView(int index)
Called when the user selects an item to view it.

Parameters:
index - the index of the element to view

onViewObject

public void onViewObject(String name)
Called when the user selects an item to view it.

Parameters:
name - the name of the object to view
See Also:
onView(int)

onRemove

public void onRemove(int index)
Called when the user selects an item to remove it.

Parameters:
index - the index of the element to remove

onTableInvoke

public void onTableInvoke(int index,
                          String methodName)
Called when a method is called on an object belonging to the collection.

Parameters:
index - the index of the element to view
methodName - the name of the method to invoke

onAddToCollection

public void onAddToCollection()
Called when the user wants to add an object to the collection.

See Also:
onAddExistingToCollection()

onAddExistingToCollection

public void onAddExistingToCollection()
Called when the user wants to add an object to the collection, without creating a new one even if the collection is "autocreate".

See Also:
onAddToCollection()

onRemoveFromCollection

public void onRemoveFromCollection()
Called when the user wants to remove an object to the collection.


onNext

public void onNext()
Display the next page of items


onPrevious

public void onPrevious()
Display the previous page of items


onFirst

public void onFirst()
Display to the first page of items


onLast

public void onLast()
Display to the last page of items


onRefreshCollection

public void onRefreshCollection()
Call when a parameter of the view has changed and the view should be refresh to take it into account.