org.knime.base.node.preproc.binner
Class BinnerNodeDialogPane

java.lang.Object
  extended by org.knime.core.node.NodeDialogPane
      extended by org.knime.base.node.preproc.binner.BinnerNodeDialogPane

final class BinnerNodeDialogPane
extends NodeDialogPane

Binner dialog used to group numeric columns (int or double) into intervals.

Author:
Thomas Gabriel, University of Konstanz

Nested Class Summary
(package private)  class BinnerNodeDialogPane.IntervalItemPanel
          Creates a new panel holding one interval.
(package private)  class BinnerNodeDialogPane.IntervalPanel
          Creates new panel holding one bin column.
 
Constructor Summary
BinnerNodeDialogPane()
          Creates a new binner dialog.
 
Method Summary
protected  void loadSettingsFrom(NodeSettingsRO settings, DataTableSpec[] specs)
          Invoked before the dialog window is opened.
protected  void saveSettingsTo(NodeSettingsWO settings)
          Invoked when the settings need to be applied.
 
Methods inherited from class org.knime.core.node.NodeDialogPane
addJobMgrTab, addTab, addTabAt, createFlowVariableModel, createFlowVariableModel, createFlowVariableModel, finishEditingAndSaveSettingsTo, getAvailableFlowVariables, getPanel, getTab, getTabIndex, internalLoadSettingsFrom, loadSettingsFrom, loadSettingsFrom, onCancel, onClose, onOpen, removeTab, renameTab, saveSettingsTo, setEnabled, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinnerNodeDialogPane

BinnerNodeDialogPane()
Creates a new binner dialog.

Method Detail

loadSettingsFrom

protected void loadSettingsFrom(NodeSettingsRO settings,
                                DataTableSpec[] specs)
                         throws NotConfigurableException
Description copied from class: NodeDialogPane
Invoked before the dialog window is opened. The settings object passed, contains the current settings of the corresponding node model. The model and the dialog must agree on a mutual contract on how settings are stored in the spec. I.e. they must able to read each other's settings.

The implementation must be able to handle invalid or incomplete settings as the model may not have any reasonable values yet (for example when the dialog is opened for the first time). When an empty/invalid settings object is passed the dialog should set default values in its components.

Overrides:
loadSettingsFrom in class NodeDialogPane
Parameters:
settings - to read intervals from
specs - The input table spec
Throws:
NotConfigurableException - if the spec contains no columns
See Also:
NodeDialogPane.loadSettingsFrom(NodeSettingsRO, DataTableSpec[])

saveSettingsTo

protected void saveSettingsTo(NodeSettingsWO settings)
                       throws InvalidSettingsException
Description copied from class: NodeDialogPane
Invoked when the settings need to be applied. The implementation should write the current user settings from its components into the passed object. It should not check consistency or completeness of the settings - this is part of the model's load method. The only situation this method would throw an exception is when a component contains an invalid value that can't be stored in the settings object.
The settings must be written in a way the model is able to load in, i.e. with the model's keys.

Specified by:
saveSettingsTo in class NodeDialogPane
Parameters:
settings - write intervals to
Throws:
InvalidSettingsException - if a bin name is empty
See Also:
NodeDialogPane.saveSettingsTo(NodeSettingsWO)


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.