PATH |
Implemented by:WODisplayGroup delegate objects
Package: com.webobjects.appserver
WODisplayGroup offers a number of methods for its delegate to implement; if the delegate does implement them, the WODisplayGroup instances invoke them as appropriate. There are methods that inform the delegate that the EODisplayGroup has fetched, created an object (or failed to create one), inserted or deleted an object, changed the selection, or set a value for a property. There are also methods that request permission from the delegate to perform most of these same actions. The delegate can return true to permit the action or false to deny it. See each method's description for more information.
public abstract void displayGroupCreateObjectFailedForDataSource( WODisplayGroup aDisplayGroup, com.webobjects.eocontrol.EODataSource dataSource)
public abstract void displayGroupDidChangeDataSource(WODisplayGroup aDisplayGroup)
public abstract void displayGroupDidChangeSelectedObjects(WODisplayGroup aDisplayGroup)
public abstract void displayGroupDidChangeSelection(WODisplayGroup aDisplayGroup)
public abstract void displayGroupDidDeleteObject( WODisplayGroup aDisplayGroup, Object anObject)
public abstract void displayGroupDidFetchObjects( WODisplayGroup aDisplayGroup, NSArray objects)
public abstract void displayGroupDidInsertObject( WODisplayGroup aDisplayGroup, Object anObject)
public abstract void displayGroupDidSetValue( WODisplayGroup aDisplayGroup, Object value, Object anObject, String key)
public abstract NSArray displayGroupDisplayArrayForObjects( WODisplayGroup aDisplayGroup, NSArray objects)
If the delegate doesn't implement this method, the WODisplayGroup uses its own qualifier and sort ordering to update the displayed objects array.
See Also: displayedObjects, qualifier, sortOrderings
public abstract boolean displayGroupShouldChangeSelectionToIndexes( WODisplayGroup aDisplayGroup, NSArray newIndexes)
public abstract boolean displayGroupShouldDeleteObject( WODisplayGroup aDisplayGroup, Object anObject)
public abstract boolean displayGroupShouldDisplayAlert(WODisplayGroup group, String title, String message)
true
, an alert is displayed; if the delegate returns false
, no alert is displayed. The two string parameters allow you to control the contents of the alert panel: use the second parameter to pass the alert title and the third parameter to pass the alert message.
public abstract boolean displayGroupShouldFetch(WODisplayGroup aDisplayGroup)
public abstract boolean displayGroupShouldInsertObject( WODisplayGroup aDisplayGroup, Object anObject, int anIndex)
public abstract boolean displayGroupShouldRedisplayForChangesInEditingContext( WODisplayGroup aDisplayGroup, NSNotification aNotification)
See Also: redisplay
public abstract boolean displayGroupShouldRefetchForInvalidatedAllObjects( WODisplayGroup aDisplayGroup, NSNotification aNotification)
See Also: redisplay
© 2001 Apple Computer, Inc. (Last Published April 15, 2001)