org.trails.callback
Class CollectionCallback

java.lang.Object
  extended by org.trails.callback.TrailsCallback
      extended by org.trails.callback.EditCallback
          extended by org.trails.callback.CollectionCallback
All Implemented Interfaces:
java.io.Serializable, org.apache.tapestry.callback.ICallback

public class CollectionCallback
extends EditCallback

This guy is responsible for returning from an add or remove on a collection.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.trails.callback.EditCallback
model
 
Constructor Summary
CollectionCallback(java.lang.String pageName, java.lang.Object model, CollectionDescriptor collectionDescriptor)
           
 
Method Summary
 boolean isChildRelationship()
           
 void remove(PersistenceService persistenceService, java.lang.Object object)
           
 void save(PersistenceService persistenceService, java.lang.Object newObject)
           
 void setChildRelationship(boolean child)
           
 
Methods inherited from class org.trails.callback.EditCallback
getModel, isModelNew, performCallback, setModel, setModelNew, shouldReplace
 
Methods inherited from class org.trails.callback.TrailsCallback
equals, getPageName, setPageName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionCallback

public CollectionCallback(java.lang.String pageName,
                          java.lang.Object model,
                          CollectionDescriptor collectionDescriptor)
Parameters:
pageName -
model -
Method Detail

save

public void save(PersistenceService persistenceService,
                 java.lang.Object newObject)

remove

public void remove(PersistenceService persistenceService,
                   java.lang.Object object)

isChildRelationship

public boolean isChildRelationship()

setChildRelationship

public void setChildRelationship(boolean child)


Copyright © 2004-2007. All Rights Reserved.