net.kwfgrid.gwes
Class WorkflowModificationListener

java.lang.Object
  extended by net.kwfgrid.gwes.WorkflowModificationListener
All Implemented Interfaces:
EventListener, net.kwfgrid.gworkflowdl.protocol.structure.IStructureListener, net.kwfgrid.gworkflowdl.protocol.structure.IStructureListenerExt

public class WorkflowModificationListener
extends Object
implements net.kwfgrid.gworkflowdl.protocol.structure.IStructureListenerExt

Version:
$Id: WorkflowModificationListener.java 1419 2010-11-01 14:12:17Z hoheisel $
Author:
Andreas Hoheisel and Tilman Linden (www.andreas-hoheisel.de)

Method Summary
 void beginModifications(net.kwfgrid.gworkflowdl.protocol.structure.IRootObject iRootObject)
           
 void endModifications(net.kwfgrid.gworkflowdl.protocol.structure.IRootObject iRootObject)
           
 void exception(net.kwfgrid.gworkflowdl.protocol.structure.IRootObject iRootObject, Throwable throwable)
           
static WorkflowModificationListener getInstance()
          Get the instance or create a new one if null.
 void objectsAdded(net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject parent, String namespace, String name, List objects)
          Called when an object has been added to the object structure.
 void objectsRemoved(net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject oldparent, String namespace, String name, List objects)
          Called when an object has been removed from the object structure.
 void propertyChanged(net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject parent, String namespace, String name, Object newvalue)
          Called when a property in the object structure has changed it's value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WorkflowModificationListener getInstance()
Get the instance or create a new one if null.


beginModifications

public void beginModifications(net.kwfgrid.gworkflowdl.protocol.structure.IRootObject iRootObject)
Specified by:
beginModifications in interface net.kwfgrid.gworkflowdl.protocol.structure.IStructureListenerExt

endModifications

public void endModifications(net.kwfgrid.gworkflowdl.protocol.structure.IRootObject iRootObject)
Specified by:
endModifications in interface net.kwfgrid.gworkflowdl.protocol.structure.IStructureListenerExt

exception

public void exception(net.kwfgrid.gworkflowdl.protocol.structure.IRootObject iRootObject,
                      Throwable throwable)
Specified by:
exception in interface net.kwfgrid.gworkflowdl.protocol.structure.IStructureListenerExt

objectsAdded

public void objectsAdded(net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject parent,
                         String namespace,
                         String name,
                         List objects)
Called when an object has been added to the object structure.

Specified by:
objectsAdded in interface net.kwfgrid.gworkflowdl.protocol.structure.IStructureListener
Parameters:
parent - The parent of the added objects.
namespace - The namespace of the added objects.
name - The name of the added objects.
objects - The added object.

objectsRemoved

public void objectsRemoved(net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject oldparent,
                           String namespace,
                           String name,
                           List objects)
Called when an object has been removed from the object structure.

Specified by:
objectsRemoved in interface net.kwfgrid.gworkflowdl.protocol.structure.IStructureListener
Parameters:
oldparent - The former parent of the removed object.
namespace - The namespace of the removed objects.
name - The name of the removed objects.
objects - The removed objects.

propertyChanged

public void propertyChanged(net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject parent,
                            String namespace,
                            String name,
                            Object newvalue)
Called when a property in the object structure has changed it's value.

Specified by:
propertyChanged in interface net.kwfgrid.gworkflowdl.protocol.structure.IStructureListener
Parameters:
parent - The parent of the leaf.
namespace - The namespace of the updated property.
name - The name of the updated property.
newvalue - The new value of the updated property. Primitives like int, boolean, etc. will be wrapped in according Objects.


Copyright © 2005-2011 Fraunhofer FIRST. All Rights Reserved.