org.knime.base.node.preproc.filter.hilite.collector
Class HiLiteCollectorNodeView

java.lang.Object
  extended by org.knime.core.node.AbstractNodeView<T>
      extended by org.knime.core.node.NodeView<HiLiteCollectorNodeModel>
          extended by org.knime.base.node.preproc.filter.hilite.collector.HiLiteCollectorNodeView
All Implemented Interfaces:
EventListener, NodeModelWarningListener

public class HiLiteCollectorNodeView
extends NodeView<HiLiteCollectorNodeModel>

Author:
Thomas Gabriel, University of Konstanz

Field Summary
 
Fields inherited from class org.knime.core.node.NodeView
COLOR_BACKGROUND, PROP_CHANGE_CLOSE
 
Constructor Summary
HiLiteCollectorNodeView(HiLiteCollectorNodeModel model)
          Creates a new view on a hilite collector model.
 
Method Summary
 void modelChanged()
          Method is invoked when the underlying NodeModel has changed.
 void onClose()
          Invoked when the window is about to be closed.
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.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

HiLiteCollectorNodeView

HiLiteCollectorNodeView(HiLiteCollectorNodeModel model)
Creates a new view on a hilite collector model.

Parameters:
model - the underlying hilite collector model
Method Detail

modelChanged

public void modelChanged()
Method is invoked when the underlying NodeModel has changed. Also the HiLightHandler have changed. Note, the NodeModel content may be not available. Be sure to modify GUI components in the EventDispatchThread only.

Specified by:
modelChanged in class AbstractNodeView<HiLiteCollectorNodeModel>

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<HiLiteCollectorNodeModel>
Parameters:
arg - The argument that is provided in the notifyViews method.

onClose

public void onClose()
Invoked when the window is about to be closed. Unregister HiLiteListeners. Dispose internal members.
This method is the first to be called on a close request (right after the view is unregistered from the NodeModel

Specified by:
onClose in class NodeView<HiLiteCollectorNodeModel>

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.

Specified by:
onOpen in class NodeView<HiLiteCollectorNodeModel>


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.