org.knime.core.node.workflow
Class WorkflowEvent
java.lang.Object
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. |
WorkflowEvent
public WorkflowEvent(WorkflowEvent.Type type,
NodeID nodeID,
Object oldValue,
Object newValue)
- Creates a new workflow event.
- Parameters:
type
- the type of the eventnodeID
- The ID for the affected nodeoldValue
- value before the change (may be null
)newValue
- value after the change (may be null
)
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.