|
||||||||||
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.filter.nominal.NominalValueRowFilterNodeDialog
public class NominalValueRowFilterNodeDialog
NodeDialog
for the "PossibleValueRowFilter" Node. Adds a
select box for the nominal column and an include and exclude list with the
necessar buttons to add, add all, remove, and remove all possible values from
one list to the other. The lists are update, when a nominal column is
selected.
Field Summary | |
---|---|
(package private) static String |
CFG_SELECTED_ATTR
Config key for the possible values to include. |
(package private) static String |
CFG_SELECTED_COL
Config key for the selected column. |
Constructor Summary | |
---|---|
protected |
NominalValueRowFilterNodeDialog()
New pane for configuring the PossibleValueRowFilter node. |
Method Summary | |
---|---|
void |
itemStateChanged(ItemEvent item)
If the nominal column selection changes, include and exclude lists are cleared and all possible values of that column are put into the exclude list. |
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 |
Field Detail |
---|
static final String CFG_SELECTED_COL
static final String CFG_SELECTED_ATTR
Constructor Detail |
---|
protected NominalValueRowFilterNodeDialog()
Method Detail |
---|
public void itemStateChanged(ItemEvent item)
itemStateChanged
in interface ItemListener
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 NodeDialogPane
settings
- 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. Items of the array could be null
if no spec is available from the corresponding input port.
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 NodeDialogPane
settings
- The settings object to write into.
InvalidSettingsException
- If the settings are not applicable to
the model.NodeModel.loadSettingsFrom(NodeSettingsRO)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |