net.wotonomy.ui
Interface EODisplayGroup.Delegate

All Known Implementing Classes:
DebuggingDelegate, DelegateAdapter
Enclosing class:
EODisplayGroup

public static interface EODisplayGroup.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(EODisplayGroup aDisplayGroup, net.wotonomy.control.EODataSource aDataSource)
          Called when the specified data source fails to create an object for the specified display group.
 void displayGroupDidChangeDataSource(EODisplayGroup aDisplayGroup)
          Called after the specified display group's data source is changed.
 void displayGroupDidChangeSelectedObjects(EODisplayGroup aDisplayGroup)
          Called after a change occurs in the specified display group's selected objects.
 void displayGroupDidChangeSelection(EODisplayGroup aDisplayGroup)
          Called after the specified display group's selection has changed.
 void displayGroupDidDeleteObject(EODisplayGroup aDisplayGroup, java.lang.Object anObject)
          Called after the specified display group has deleted the specified object.
 void displayGroupDidFetchObjects(EODisplayGroup aDisplayGroup, java.util.List anObjectList)
          Called after the specified display group has fetched the specified object list.
 void displayGroupDidInsertObject(EODisplayGroup aDisplayGroup, java.lang.Object anObject)
          Called after the specified display group has inserted the specified object into its internal object list.
 void displayGroupDidSetValueForObject(EODisplayGroup 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(EODisplayGroup 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(EODisplayGroup aDisplayGroup, java.util.List aSelectionList)
          Called by the specified display group before it attempts to change the selection.
 boolean displayGroupShouldDeleteObject(EODisplayGroup aDisplayGroup, java.lang.Object anObject)
          Called by the specified display group before it attempts to delete the specified object.
 boolean displayGroupShouldDisplayAlert(EODisplayGroup 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(EODisplayGroup aDisplayGroup)
          Called by the specified display group before it attempts fetch objects.
 boolean displayGroupShouldInsertObject(EODisplayGroup aDisplayGroup, java.lang.Object anObject, int anIndex)
          Called by the specified display group before it attempts to insert the specified object.
 boolean displayGroupShouldRedisplay(EODisplayGroup aDisplayGroup, net.wotonomy.foundation.NSNotification aNotification)
          Called by the specified display group when it receives the specified ObjectsChangedInEditingContextNotification.
 boolean displayGroupShouldRefetch(EODisplayGroup aDisplayGroup, net.wotonomy.foundation.NSNotification aNotification)
          Called by the specified display group when it receives the specified InvalidatedAllObjectsInStoreNotification.
 

Method Detail

displayGroupCreateObjectFailed

void displayGroupCreateObjectFailed(EODisplayGroup 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(EODisplayGroup aDisplayGroup)
Called after the specified display group's data source is changed.


displayGroupDidChangeSelectedObjects

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


displayGroupDidChangeSelection

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


displayGroupDidDeleteObject

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


displayGroupDidFetchObjects

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


displayGroupDidInsertObject

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


displayGroupDidSetValueForObject

void displayGroupDidSetValueForObject(EODisplayGroup 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(EODisplayGroup 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(EODisplayGroup 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(EODisplayGroup 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(EODisplayGroup 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(EODisplayGroup 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(EODisplayGroup 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(EODisplayGroup 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(EODisplayGroup 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.