net.wotonomy.web
Interface WODisplayGroup.Delegate

Enclosing class:
WODisplayGroup

public static interface WODisplayGroup.Delegate

DisplayGroups can delegate important decisions to a Delegate. Note that DisplayGroup doesn't require its delegates to implement this interface: rather, this interface defines the methods that DisplayGroup will attempt to invoke dynamically on its delegate. The delegate may choose to implement only a subset of the methods on the interface.


Method Summary
 void displayGroupCreateObjectFailed(WODisplayGroup aDisplayGroup, net.wotonomy.control.EODataSource aDataSource)
          Called when the specified data source fails to create an object for the specified display group.
 void displayGroupDidChangeDataSource(WODisplayGroup aDisplayGroup)
          Called after the specified display group's data source is changed.
 void displayGroupDidChangeSelectedObjects(WODisplayGroup aDisplayGroup)
          Called after a change occurs in the specified display group's selected objects.
 void displayGroupDidChangeSelection(WODisplayGroup aDisplayGroup)
          Called after the specified display group's selection has changed.
 void displayGroupDidDeleteObject(WODisplayGroup aDisplayGroup, java.lang.Object anObject)
          Called after the specified display group has deleted the specified object.
 void displayGroupDidFetchObjects(WODisplayGroup aDisplayGroup, java.util.List anObjectList)
          Called after the specified display group has fetched the specified object list.
 void displayGroupDidInsertObject(WODisplayGroup aDisplayGroup, java.lang.Object anObject)
          Called after the specified display group has inserted the specified object into its internal object list.
 void displayGroupDidSetValueForObject(WODisplayGroup aDisplayGroup, java.lang.Object aValue, java.lang.Object anObject, java.lang.String aKey)
          Called after the specified display group has set the specified value for the specified object and key.
 net.wotonomy.foundation.NSArray displayGroupDisplayArrayForObjects(WODisplayGroup aDisplayGroup, java.util.List aList)
          Called by the specified display group to determine what objects should be displayed for the objects in the specified list.
 boolean displayGroupShouldChangeSelection(WODisplayGroup aDisplayGroup, java.util.List aSelectionList)
          Called by the specified display group before it attempts to change the selection.
 boolean displayGroupShouldDeleteObject(WODisplayGroup aDisplayGroup, java.lang.Object anObject)
          Called by the specified display group before it attempts to delete the specified object.
 boolean displayGroupShouldDisplayAlert(WODisplayGroup aDisplayGroup, java.lang.String aTitle, java.lang.String aMessage)
          Called by the specified display group before it attempts display the specified alert to the user.
 boolean displayGroupShouldFetch(WODisplayGroup aDisplayGroup)
          Called by the specified display group before it attempts fetch objects.
 boolean displayGroupShouldInsertObject(WODisplayGroup aDisplayGroup, java.lang.Object anObject, int anIndex)
          Called by the specified display group before it attempts to insert the specified object.
 boolean displayGroupShouldRedisplay(WODisplayGroup aDisplayGroup, net.wotonomy.foundation.NSNotification aNotification)
          Called by the specified display group when it receives the specified ObjectsChangedInEditingContextNotification.
 boolean displayGroupShouldRefetch(WODisplayGroup aDisplayGroup, net.wotonomy.foundation.NSNotification aNotification)
          Called by the specified display group when it receives the specified InvalidatedAllObjectsInStoreNotification.
 

Method Detail

displayGroupCreateObjectFailed

void displayGroupCreateObjectFailed(WODisplayGroup aDisplayGroup,
                                    net.wotonomy.control.EODataSource aDataSource)
Called when the specified data source fails to create an object for the specified display group.


displayGroupDidChangeDataSource

void displayGroupDidChangeDataSource(WODisplayGroup aDisplayGroup)
Called after the specified display group's data source is changed.


displayGroupDidChangeSelectedObjects

void displayGroupDidChangeSelectedObjects(WODisplayGroup aDisplayGroup)
Called after a change occurs in the specified display group's selected objects.


displayGroupDidChangeSelection

void displayGroupDidChangeSelection(WODisplayGroup aDisplayGroup)
Called after the specified display group's selection has changed.


displayGroupDidDeleteObject

void displayGroupDidDeleteObject(WODisplayGroup aDisplayGroup,
                                 java.lang.Object anObject)
Called after the specified display group has deleted the specified object.


displayGroupDidFetchObjects

void displayGroupDidFetchObjects(WODisplayGroup aDisplayGroup,
                                 java.util.List anObjectList)
Called after the specified display group has fetched the specified object list.


displayGroupDidInsertObject

void displayGroupDidInsertObject(WODisplayGroup aDisplayGroup,
                                 java.lang.Object anObject)
Called after the specified display group has inserted the specified object into its internal object list.


displayGroupDidSetValueForObject

void displayGroupDidSetValueForObject(WODisplayGroup aDisplayGroup,
                                      java.lang.Object aValue,
                                      java.lang.Object anObject,
                                      java.lang.String aKey)
Called after the specified display group has set the specified value for the specified object and key.


displayGroupDisplayArrayForObjects

net.wotonomy.foundation.NSArray displayGroupDisplayArrayForObjects(WODisplayGroup aDisplayGroup,
                                                                   java.util.List aList)
Called by the specified display group to determine what objects should be displayed for the objects in the specified list.

Returns:
An NSArray containing the objects to be displayed for the objects in the specified list.

displayGroupShouldChangeSelection

boolean displayGroupShouldChangeSelection(WODisplayGroup aDisplayGroup,
                                          java.util.List aSelectionList)
Called by the specified display group before it attempts to change the selection.

Returns:
True to allow the selection to change, false otherwise.

displayGroupShouldDeleteObject

boolean displayGroupShouldDeleteObject(WODisplayGroup aDisplayGroup,
                                       java.lang.Object anObject)
Called by the specified display group before it attempts to delete the specified object.

Returns:
True to allow the object to be deleted false to prevent the deletion.

displayGroupShouldDisplayAlert

boolean displayGroupShouldDisplayAlert(WODisplayGroup aDisplayGroup,
                                       java.lang.String aTitle,
                                       java.lang.String aMessage)
Called by the specified display group before it attempts display the specified alert to the user.

Returns:
True to allow the message to be displayed, false if you want to handle the alert yourself and suppress the display group's notification.

displayGroupShouldFetch

boolean displayGroupShouldFetch(WODisplayGroup aDisplayGroup)
Called by the specified display group before it attempts fetch objects.

Returns:
True to allow the fetch to take place, false to prevent the fetch.

displayGroupShouldInsertObject

boolean displayGroupShouldInsertObject(WODisplayGroup aDisplayGroup,
                                       java.lang.Object anObject,
                                       int anIndex)
Called by the specified display group before it attempts to insert the specified object.

Returns:
True to allow the object to be inserted false to prevent the insertion.

displayGroupShouldRedisplay

boolean displayGroupShouldRedisplay(WODisplayGroup aDisplayGroup,
                                    net.wotonomy.foundation.NSNotification aNotification)
Called by the specified display group when it receives the specified ObjectsChangedInEditingContextNotification.

Returns:
True to allow the display group to update the display (recommended), false to prevent the update.

displayGroupShouldRefetch

boolean displayGroupShouldRefetch(WODisplayGroup aDisplayGroup,
                                  net.wotonomy.foundation.NSNotification aNotification)
Called by the specified display group when it receives the specified InvalidatedAllObjectsInStoreNotification.

Returns:
True to allow the display group to refetch (recommended), false to prevent the refetch.


Copyright © 2006 null. All Rights Reserved.