org.nakedobjects.viewer.lightweight
Class ViewUpdateNotifier

java.lang.Object
  extended byorg.nakedobjects.viewer.lightweight.ViewUpdateNotifier
All Implemented Interfaces:
DebugInfo, UpdateNotifier

public class ViewUpdateNotifier
extends java.lang.Object
implements UpdateNotifier, DebugInfo


Constructor Summary
ViewUpdateNotifier()
           
 
Method Summary
 void add(ObjectView view)
           
 void broadcastAdd(NakedCollection collection, NakedObject element)
          Indicates that an element has been added to a collection
 void broadcastObject(NakedObject object)
          Indicates that a specific object has been changed
 void broadcastRemove(NakedCollection collection, NakedObject element)
          Indicates that an element has been removed from a collection
 java.lang.String getDebugData()
          Debug details describing the object being investigated
 java.lang.String getDebugTitle()
          the title for the debug information
 void init()
          Called when the UpdateNotifier is installed.
 void remove(ObjectView view)
           
 void shutdown()
          Called when the UpdateNotifier is about to be shutdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewUpdateNotifier

public ViewUpdateNotifier()
Method Detail

getDebugData

public java.lang.String getDebugData()
Description copied from interface: DebugInfo
Debug details describing the object being investigated

Specified by:
getDebugData in interface DebugInfo

getDebugTitle

public java.lang.String getDebugTitle()
Description copied from interface: DebugInfo
the title for the debug information

Specified by:
getDebugTitle in interface DebugInfo

add

public void add(ObjectView view)

broadcastAdd

public void broadcastAdd(NakedCollection collection,
                         NakedObject element)
Description copied from interface: UpdateNotifier
Indicates that an element has been added to a collection

Specified by:
broadcastAdd in interface UpdateNotifier
Parameters:
collection - the collection being added to
element - the object being added

broadcastObject

public void broadcastObject(NakedObject object)
Description copied from interface: UpdateNotifier
Indicates that a specific object has been changed

Specified by:
broadcastObject in interface UpdateNotifier
Parameters:
object -

broadcastRemove

public void broadcastRemove(NakedCollection collection,
                            NakedObject element)
Description copied from interface: UpdateNotifier
Indicates that an element has been removed from a collection

Specified by:
broadcastRemove in interface UpdateNotifier
Parameters:
collection - the collection being removed from
element - the object being removed

init

public void init()
Description copied from interface: UpdateNotifier
Called when the UpdateNotifier is installed. Should set up any required network connections and resources.

Specified by:
init in interface UpdateNotifier

remove

public void remove(ObjectView view)

shutdown

public void shutdown()
Description copied from interface: UpdateNotifier
Called when the UpdateNotifier is about to be shutdown. All connections and resources should be released.

Specified by:
shutdown in interface UpdateNotifier