net.wotonomy.ui
Class DebuggingDelegate

java.lang.Object
  extended by net.wotonomy.ui.DebuggingDelegate
All Implemented Interfaces:
EODisplayGroup.Delegate

public class DebuggingDelegate
extends java.lang.Object
implements EODisplayGroup.Delegate

A display group delegate that prints messages for each of the delegate methods.

Version:
$Revision: 904 $
Author:
michael@mpowers.net, $Author: cgruber $

Constructor Summary
DebuggingDelegate()
           
 
Method Summary
protected  boolean ask(java.lang.String aTitle, EODisplayGroup aDisplayGroup, java.lang.Object[] aParameterArray)
          This method is called by the methods that return a boolean.
 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 the specified display group's selection has changed.
 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 object display group's selection has changed.
 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)
          No idea what this might indicate, nor what the notification indicates.
 boolean displayGroupShouldRefetch(EODisplayGroup aDisplayGroup, net.wotonomy.foundation.NSNotification aNotification)
          No idea what this might indicate, nor what the notification indicates.
protected  net.wotonomy.foundation.NSArray get(java.lang.String aTitle, EODisplayGroup aDisplayGroup, java.util.List anObjectList)
          This method is called by displayGroupDisplayArrayForObjects.
protected  void report(java.lang.String aTitle, EODisplayGroup aDisplayGroup, java.lang.Object[] aParameterArray)
          This method is called by all delegate methods that return void.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebuggingDelegate

public DebuggingDelegate()
Method Detail

displayGroupCreateObjectFailed

public 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.

Specified by:
displayGroupCreateObjectFailed in interface EODisplayGroup.Delegate

displayGroupDidChangeDataSource

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

Specified by:
displayGroupDidChangeDataSource in interface EODisplayGroup.Delegate

displayGroupDidChangeSelectedObjects

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

Specified by:
displayGroupDidChangeSelectedObjects in interface EODisplayGroup.Delegate

displayGroupDidChangeSelection

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

Specified by:
displayGroupDidChangeSelection in interface EODisplayGroup.Delegate

displayGroupDidDeleteObject

public void displayGroupDidDeleteObject(EODisplayGroup aDisplayGroup,
                                        java.lang.Object anObject)
Called after the specified object display group's selection has changed.

Specified by:
displayGroupDidDeleteObject in interface EODisplayGroup.Delegate

displayGroupDidFetchObjects

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

Specified by:
displayGroupDidFetchObjects in interface EODisplayGroup.Delegate

displayGroupDidInsertObject

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

Specified by:
displayGroupDidInsertObject in interface EODisplayGroup.Delegate

displayGroupDidSetValueForObject

public 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.

Specified by:
displayGroupDidSetValueForObject in interface EODisplayGroup.Delegate

displayGroupDisplayArrayForObjects

public 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.

Specified by:
displayGroupDisplayArrayForObjects in interface EODisplayGroup.Delegate
Returns:
An NSArray containing the objects to be displayed for the objects in the specified list.

displayGroupShouldChangeSelection

public boolean displayGroupShouldChangeSelection(EODisplayGroup aDisplayGroup,
                                                 java.util.List aSelectionList)
Called by the specified display group before it attempts to change the selection. This implementation returns true.

Specified by:
displayGroupShouldChangeSelection in interface EODisplayGroup.Delegate
Returns:
True to allow the selection to change, false otherwise.

displayGroupShouldDeleteObject

public boolean displayGroupShouldDeleteObject(EODisplayGroup aDisplayGroup,
                                              java.lang.Object anObject)
Called by the specified display group before it attempts to delete the specified object. This implementation returns true.

Specified by:
displayGroupShouldDeleteObject in interface EODisplayGroup.Delegate
Returns:
True to allow the object to be deleted false to prevent the deletion.

displayGroupShouldDisplayAlert

public 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. This implementation returns true.

Specified by:
displayGroupShouldDisplayAlert in interface EODisplayGroup.Delegate
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

public boolean displayGroupShouldFetch(EODisplayGroup aDisplayGroup)
Called by the specified display group before it attempts fetch objects. This implementation returns true.

Specified by:
displayGroupShouldFetch in interface EODisplayGroup.Delegate
Returns:
True to allow the fetch to take place, false to prevent the fetch.

displayGroupShouldInsertObject

public boolean displayGroupShouldInsertObject(EODisplayGroup aDisplayGroup,
                                              java.lang.Object anObject,
                                              int anIndex)
Called by the specified display group before it attempts to insert the specified object. This implementation returns true.

Specified by:
displayGroupShouldInsertObject in interface EODisplayGroup.Delegate
Returns:
True to allow the object to be inserted false to prevent the insertion.

displayGroupShouldRedisplay

public boolean displayGroupShouldRedisplay(EODisplayGroup aDisplayGroup,
                                           net.wotonomy.foundation.NSNotification aNotification)
No idea what this might indicate, nor what the notification indicates. This implementation returns true.

Specified by:
displayGroupShouldRedisplay in interface EODisplayGroup.Delegate
Returns:
True to allow the display group to update the display (recommended), false to prevent the update.

displayGroupShouldRefetch

public boolean displayGroupShouldRefetch(EODisplayGroup aDisplayGroup,
                                         net.wotonomy.foundation.NSNotification aNotification)
No idea what this might indicate, nor what the notification indicates.

Specified by:
displayGroupShouldRefetch in interface EODisplayGroup.Delegate
Returns:
True to allow the display group to refetch (recommended), false to prevent the refetch.

report

protected void report(java.lang.String aTitle,
                      EODisplayGroup aDisplayGroup,
                      java.lang.Object[] aParameterArray)
This method is called by all delegate methods that return void. This implementation calls System.out.println. Override to customize or replace the output.


get

protected net.wotonomy.foundation.NSArray get(java.lang.String aTitle,
                                              EODisplayGroup aDisplayGroup,
                                              java.util.List anObjectList)
This method is called by displayGroupDisplayArrayForObjects. This implementation calls report and returns a copy of the specified list.


ask

protected boolean ask(java.lang.String aTitle,
                      EODisplayGroup aDisplayGroup,
                      java.lang.Object[] aParameterArray)
This method is called by the methods that return a boolean. This implementation calls report and return true.



Copyright © 2006 null. All Rights Reserved.