|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.NodeDialogPane
org.knime.base.node.preproc.colcompare.ColumnComparatorNodeDialogPane
public class ColumnComparatorNodeDialogPane
Comparator node dialog pane to select two columns for comparison, replacement value or missing, and a new column name to append.
| Nested Class Summary | |
|---|---|
static class |
ColumnComparatorNodeDialogPane.ComparatorMethod
Comparator methods. |
| Field Summary | |
|---|---|
static String[] |
REPL_OPTIONS
Replacement options: LEFT_VALUE, RIGHT_VALUE, MISSING, and USER_DEFINED. |
| Constructor Summary | |
|---|---|
ColumnComparatorNodeDialogPane()
Create new dialog pane with default components. |
|
| Method Summary | |
|---|---|
(package private) static SettingsModelString |
createComparatorMethod()
|
(package private) static SettingsModelString |
createFirstColumnModel()
|
(package private) static SettingsModelString |
createMatchOption()
|
(package private) static SettingsModelString |
createMatchValue()
|
(package private) static SettingsModelString |
createMismatchOption()
|
(package private) static SettingsModelString |
createMismatchValue()
|
(package private) static SettingsModelString |
createNewColumnName()
|
(package private) static SettingsModelString |
createSecondColumnModel()
|
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 |
|---|
addFlowVariablesTab, addJobMgrTab, addTab, addTabAt, closeOnESC, createFlowVariableModel, createFlowVariableModel, createFlowVariableModel, finishEditingAndSaveSettingsTo, getAvailableFlowVariables, getCredentialsNames, getCredentialsProvider, getPanel, getTab, getTabIndex, internalLoadSettingsFrom, isWriteProtected, 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 |
| Field Detail |
|---|
public static final String[] REPL_OPTIONS
| Constructor Detail |
|---|
ColumnComparatorNodeDialogPane()
| Method Detail |
|---|
protected void loadSettingsFrom(NodeSettingsRO settings,
DataTableSpec[] specs)
throws NotConfigurableException
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.
loadSettingsFrom in class NodeDialogPanesettings - The settings to load into the dialog. Could be an empty
object or contain invalid settings. But will never be null.specs - The input data table specs. If no spec is available for any
given port (because the port is not connected or the previous
node does not produce a spec) the framework will pass an
empty DataTableSpec (no columns) unless the port is
marked as optional (in which
case the array element is null).
NotConfigurableException - if the dialog cannot be opened because
of real invalid settings or if any preconditions are not fulfilled, e.g.
no predecessor node, no nominal column in input table, etc.NodeModel.loadSettingsFrom(NodeSettingsRO)
protected void saveSettingsTo(NodeSettingsWO settings)
throws InvalidSettingsException
saveSettingsTo in class NodeDialogPanesettings - The settings object to write into.
InvalidSettingsException - If the settings are not applicable to
the model.NodeModel.loadSettingsFrom(NodeSettingsRO)static SettingsModelString createComparatorMethod()
static SettingsModelString createFirstColumnModel()
static SettingsModelString createSecondColumnModel()
static SettingsModelString createMismatchOption()
static SettingsModelString createMatchOption()
static SettingsModelString createMatchValue()
static SettingsModelString createMismatchValue()
static SettingsModelString createNewColumnName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||