org.knime.core.node
Class NodeDialog

java.lang.Object
  extended by org.knime.core.node.NodeDialog

public final class NodeDialog
extends Object

The standard node dialog used to display the node dialog pane.

Author:
Thomas Gabriel, University of Konstanz

Constructor Summary
NodeDialog(NodeDialogPane pane, NodeContainer node)
          Creates a new dialog which is used for the stand-alone application in order to view the NodeDialogPane.
 
Method Summary
(package private)  void closeDialog()
          Closes the dialog: visible false and dispose.
protected  boolean onApply(AWTEvent event)
          Triggered if this dialog's apply button is pressed.
protected  void onCancel(AWTEvent event)
          Invoked when the cancel button is pressed.
protected  void onClose(AWTEvent event)
          Invoked if the dialog is going to be closed.
protected  void onOK(AWTEvent event)
          Invoked when the ok button is pressed - automatically calls the #onApply(AWTEvent) method which must be provided by the derived class.
protected  void onOpen(AWTEvent event)
          Invoked if the dialog is going to open.
 void openDialog()
          Opens the dialog: packed, centered, and visible true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeDialog

public NodeDialog(NodeDialogPane pane,
                  NodeContainer node)
Creates a new dialog which is used for the stand-alone application in order to view the NodeDialogPane.

Parameters:
pane - this dialog's underlying pane
node - the underlying node
Method Detail

openDialog

public void openDialog()
Opens the dialog: packed, centered, and visible true.


onApply

protected boolean onApply(AWTEvent event)
Triggered if this dialog's apply button is pressed.

Parameters:
event - The apply button event.
Returns:
true if apply was successful, otherwise shows a warning message in a JOptionPane.

onCancel

protected void onCancel(AWTEvent event)
Invoked when the cancel button is pressed.

Parameters:
event - The action event of the cancel button.

onClose

protected void onClose(AWTEvent event)
Invoked if the dialog is going to be closed. Method need to be overridden, if this event should be evaluated.

Parameters:
event - The event which invokes the close operation.

onOpen

protected void onOpen(AWTEvent event)
Invoked if the dialog is going to open. Method need to be overridden, if this event should be evaluated.

Parameters:
event - The event which invoked to open operation.

onOK

protected void onOK(AWTEvent event)
Invoked when the ok button is pressed - automatically calls the #onApply(AWTEvent) method which must be provided by the derived class.

Parameters:
event - The action event of the m_ok button.

closeDialog

void closeDialog()
Closes the dialog: visible false and dispose.



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.