org.knime.base.node.util.exttool
Class ExtToolStderrNodeView<T extends ExtToolOutputNodeModel>

java.lang.Object
  extended by org.knime.core.node.AbstractNodeView<T>
      extended by org.knime.core.node.NodeView<T>
          extended by org.knime.base.node.util.exttool.ExtToolOutputNodeView<T>
              extended by org.knime.base.node.util.exttool.ExtToolStderrNodeView<T>
Type Parameters:
T - the actual implementation of the abstract node model
All Implemented Interfaces:
EventListener, NodeModelWarningListener

public class ExtToolStderrNodeView<T extends ExtToolOutputNodeModel>
extends ExtToolOutputNodeView<T>

The view showing the output to standard error. Listens to notifications (see ViewUpdateNotice) of type stderr.

Author:
ohl, University of Konstanz

Field Summary
 
Fields inherited from class org.knime.core.node.NodeView
COLOR_BACKGROUND, PROP_CHANGE_CLOSE
 
Constructor Summary
ExtToolStderrNodeView(T nodeModel)
          The constructor.
 
Method Summary
protected  Collection<String> getFullFailureOutput()
          
protected  Collection<String> getFullOutput()
          
protected  Collection<String> getNoOutputText()
          
protected  void onOpen()
          Invoked when the window has been opened.
protected  void updateModel(Object arg)
          This method can be overridden by views that want to receive events from their assigned models via the NodeModel.notifyViews(Object) method.
 
Methods inherited from class org.knime.base.node.util.exttool.ExtToolOutputNodeView
addLineInSwingThreadLater, clearText, modelChanged, onClose
 
Methods inherited from class org.knime.core.node.NodeView
callCloseView, closeView, createFrame, getComponent, getJMenuBar, getViewTitle, isOpen, openViewComponent, setComponent, setShowNODATALabel, setViewTitleSuffix, warningChanged
 
Methods inherited from class org.knime.core.node.AbstractNodeView
getLogger, getNodeModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtToolStderrNodeView

public ExtToolStderrNodeView(T nodeModel)
The constructor.

Parameters:
nodeModel - the model associated with this view.
Method Detail

updateModel

protected void updateModel(Object arg)
This method can be overridden by views that want to receive events from their assigned models via the NodeModel.notifyViews(Object) method. Can be used to iteratively update the view during execute.

Overrides:
updateModel in class AbstractNodeView<T extends ExtToolOutputNodeModel>
Parameters:
arg - The argument that is provided in the notifyViews method.

getFullFailureOutput

protected Collection<String> getFullFailureOutput()

Specified by:
getFullFailureOutput in class ExtToolOutputNodeView<T extends ExtToolOutputNodeModel>
Returns:
the entire list of strings of a previous failed execution.

getFullOutput

protected Collection<String> getFullOutput()

Specified by:
getFullOutput in class ExtToolOutputNodeView<T extends ExtToolOutputNodeModel>
Returns:
the entire list of strings to display in this view.

getNoOutputText

protected Collection<String> getNoOutputText()

Specified by:
getNoOutputText in class ExtToolOutputNodeView<T extends ExtToolOutputNodeModel>
Returns:
the text that should be displayed if none of the above methods returned any content.

onOpen

protected void onOpen()
Invoked when the window has been opened. Register property listeners.
This method is called last on view construction - right before the components are made visible. It is not called on re-opening.

Overrides:
onOpen in class ExtToolOutputNodeView<T extends ExtToolOutputNodeModel>


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.