org.knime.core.node.workflow
Class WorkflowEvent

java.lang.Object
  extended by org.knime.core.node.workflow.WorkflowEvent

public class WorkflowEvent
extends Object

Event-class for workflow events. Note that not all event types use all of the fields, meaning that some of them might be null depending on the type of the event (or whatever meaningless value was given to those fields during construction of the event - meaning all values are always specified but not all carry meaning).

Author:
Florian Georg, University of Konstanz

Nested Class Summary
static class WorkflowEvent.Type
          Enumeration of all workflow events that are interesting for the GUI.
 
Constructor Summary
WorkflowEvent(WorkflowEvent.Type type, NodeID nodeID, Object oldValue, Object newValue)
          Creates a new workflow event.
 
Method Summary
 NodeID getID()
           
 Object getNewValue()
           
 Object getOldValue()
           
 WorkflowEvent.Type getType()
           
 String toString()
          Gives a nicer representation of this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkflowEvent

public WorkflowEvent(WorkflowEvent.Type type,
                     NodeID nodeID,
                     Object oldValue,
                     Object newValue)
Creates a new workflow event.

Parameters:
type - the type of the event
nodeID - The ID for the affected node
oldValue - value before the change (may be null)
newValue - value after the change (may be null)
Method Detail

getType

public WorkflowEvent.Type getType()
Returns:
type of event

getID

public NodeID getID()
Returns:
Returns the node ID of the affected node.

getNewValue

public Object getNewValue()
Returns:
Returns the newValue.

getOldValue

public Object getOldValue()
Returns:
Returns the oldValue.

toString

public String toString()
Gives a nicer representation of this event. For debugging purposes only.

Overrides:
toString in class Object


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.