EODisplayGroup.Delegate
(informal interface)
- Package:
- com.apple.client.eointerface
- com.apple.yellow.eointerface
Interface Description
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.
Method Types
- 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
Instance Methods
displayGroupCreateObjectFailed
public abstract void
displayGroupCreateObjectFailed
(
EODisplayGroup aDisplayGroup,
com.apple.yellow.eocontrol.EODataSource aDataSource)
displayGroupDidChangeDataSource
public abstract void
displayGroupDidChangeDataSource
(EODisplayGroup aDisplayGroup)
displayGroupDidChangeSelectedObjects
public abstract void
displayGroupDidChangeSelectedObjects
(EODisplayGroup aDisplayGroup)
displayGroupDidChangeSelection
public abstract void
displayGroupDidChangeSelection
(EODisplayGroup aDisplayGroup)
displayGroupDidDeleteObject
public abstract void
displayGroupDidDeleteObject
(
EODisplayGroup aDisplayGroup,
Object anObject)
displayGroupDidFetchObjects
public abstract void
displayGroupDidFetchObjects
(
EODisplayGroup aDisplayGroup,
NSArray objects)
displayGroupDidInsertObject
public abstract void
displayGroupDidInsertObject
(
EODisplayGroup aDisplayGroup,
Object anObject)
displayGroupDidSetValueForObject
public abstract void
displayGroupDidSetValueForObject
(
EODisplayGroup aDisplayGroup,
Object value,
Object anObject,
String key)
displayGroupDisplayArrayForObjects
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
displayGroupShouldChangeSelection
public abstract boolean
displayGroupShouldChangeSelection
(
EODisplayGroup aDisplayGroup,
NSArray newIndexes)
displayGroupShouldDeleteObject
public abstract boolean
displayGroupShouldDeleteObject
(
EODisplayGroup aDisplayGroup,
Object anObject)
displayGroupShouldDisplayAlert
public abstract boolean
displayGroupShouldDisplayAlert
(
EODisplayGroup aDisplayGroup,
String title,
String message)
displayGroupShouldFetch
public abstract boolean
displayGroupShouldFetch
(EODisplayGroup aDisplayGroup)
displayGroupShouldInsertObject
public abstract boolean
displayGroupShouldInsertObject
(
EODisplayGroup aDisplayGroup,
Object anObject,
int anIndex)
displayGroupShouldRedisplay
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
displayGroupShouldRefetch
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.