(informal interface)
- Package:
- com.apple.client.eointerface
- com.apple.yellow.eointerface
The EODisplayGroup.Delegate interface defines methods that an EODisplayGroup can invoke in its delegate. Delegates are not required to provide implementations for all of the methods in the interface, and you don't have to use the implements keyword to specify that the object implements the Delegates interface. Instead, declare and implement any subset of the methods declared in the interface that you need, and use the EODisplayGroup method setDelegate method to assign your object as the delegate. A display group can determine if the delegate doesn't implement a delegate method and only attempts to invoke the methods the delegate actually implements.
- Fetching objects
- displayGroupShouldFetch
- displayGroupDidFetchObjects
- displayGroupShouldRefetch
- Inserting, updating, and deleting objects
- displayGroupShouldInsertObject
- displayGroupDidInsertObject
- displayGroupCreateObjectFailed
- displayGroupDidSetValueForObject
- displayGroupShouldDeleteObject
- displayGroupDidDeleteObject
- Managing the display
- displayGroupShouldDisplayAlert
- displayGroupShouldRedisplay
- displayGroupDisplayArrayForObjects
- Managing the selection
- displayGroupShouldChangeSelection
- displayGroupDidChangeSelection
- displayGroupDidChangeSelectedObjects
- Changing the data source
- displayGroupDidChangeDataSource
public abstract void
displayGroupCreateObjectFailed
(
EODisplayGroup aDisplayGroup,
com.apple.yellow.eocontrol.EODataSource aDataSource)
public abstract void
displayGroupDidChangeDataSource
(EODisplayGroup aDisplayGroup)
public abstract void
displayGroupDidChangeSelectedObjects
(EODisplayGroup aDisplayGroup)
public abstract void
displayGroupDidChangeSelection
(EODisplayGroup aDisplayGroup)
public abstract void
displayGroupDidDeleteObject
(
EODisplayGroup aDisplayGroup,
Object anObject)
public abstract void
displayGroupDidFetchObjects
(
EODisplayGroup aDisplayGroup,
NSArray objects)
public abstract void
displayGroupDidInsertObject
(
EODisplayGroup aDisplayGroup,
Object anObject)
public abstract void
displayGroupDidSetValueForObject
(
EODisplayGroup aDisplayGroup,
Object value,
Object anObject,
String key)
public abstract NSArray
displayGroupDisplayArrayForObjects
(
EODisplayGroup aDisplayGroup,
NSArray objects)
filteredArrayUsingQualifier
and
EOSortOrdering's sortedArrayUsingKeyOrderArray
methods in EOControl
to create the new array.
If the delegate doesn't implement this method, the EODisplayGroup uses its own qualifier and sort ordering to update its displayed objects array.
See Also: sortOrderings, qualifier, displayedObjects
public abstract boolean
displayGroupShouldChangeSelection
(
EODisplayGroup aDisplayGroup,
NSArray newIndexes)
public abstract boolean
displayGroupShouldDeleteObject
(
EODisplayGroup aDisplayGroup,
Object anObject)
public abstract boolean
displayGroupShouldDisplayAlert
(
EODisplayGroup aDisplayGroup,
String title,
String message)
public abstract boolean
displayGroupShouldFetch
(EODisplayGroup aDisplayGroup)
public abstract boolean
displayGroupShouldInsertObject
(
EODisplayGroup aDisplayGroup,
Object anObject,
int anIndex)
public abstract boolean
displayGroupShouldRedisplay
(
EODisplayGroup aDisplayGroup,
NSNotification aNotification)
ObjectsChangedInEditingContextNotification
,
this method allows the delegate to suppress redisplay based on the
nature of the change that has occurred. If the delegate returns true, aDisplayGroup redisplays;
if it returns false, aDisplayGroup doesn't. aNotification supplies
the EOEditingContext that has changed, as well as which objects
have changed and how. See the EOEditingContext class specification
for information on ObjectsChangedInEditingContextNotification
.
See Also: redisplay
public abstract boolean
displayGroupShouldRefetch
(
EODisplayGroup aDisplayGroup,
NSNotification aNotification)
InvalidatedAllObjectsInStoreNotification
,
this method allows the delegate to suppress refetching of the invalidated
objects. If the delegate returns true, aDisplayGroup immediately
refetches its objects. If the delegate returns false, aDisplayGroup doesn't immediately
fetch, instead delaying until absolutely necessary. aNotification is
an NSNotification. See the EOObjectStore and EOEditingContext class
specifications for information on this notification.