|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.defaultnodesettings.SettingsModel
org.knime.base.node.viz.histogram.util.SettingsModelColorNameColumns
public class SettingsModelColorNameColumns
Constructor Summary | |
---|---|
SettingsModelColorNameColumns(String configName,
ColorColumn[] defaultValue)
Creates a new object holding a string value. |
Method Summary | |
---|---|
protected SettingsModelColorNameColumns |
createClone()
|
ColorColumn[] |
getColorNameColumns()
|
protected String |
getConfigName()
|
protected String |
getModelTypeID()
Each settings model provides an ID which will be stored with its values. |
protected void |
loadSettingsForDialog(NodeSettingsRO settings,
PortObjectSpec[] specs)
Read the value(s) of this settings model from configuration object. |
protected void |
loadSettingsForModel(NodeSettingsRO settings)
Read value(s) of this settings model from the configuration object. |
protected void |
prependChangeListener(ChangeListener l)
Adds a listener (to the beginning of the listener list) which is notified, whenever a new values is set in the model or the enable status changes. |
protected void |
saveSettingsForDialog(NodeSettingsWO settings)
Write value(s) of this component model to configuration object. |
protected void |
saveSettingsForModel(NodeSettingsWO settings)
Write value(s) of this settings model to configuration object. NOTE: Don't call this method directly, rather call saveSettingsTo. |
void |
setColorNameColumns(ColorColumn... newValue)
set the value stored to (a copy of) the new value. |
String |
toString()
Derived classes should print their class name plus the config name for nice and useful error messages. |
protected void |
validateSettingsForModel(NodeSettingsRO settings)
Read the expected values from the settings object, without assigning them to the internal variables! (Is not called when the model was disabled at the time the settings were saved.) |
Methods inherited from class org.knime.core.node.defaultnodesettings.SettingsModel |
---|
addChangeListener, createCloneWithValidatedValue, isEnabled, loadSettingsFrom, notifyChangeListeners, removeChangeListener, saveSettingsTo, setEnabled, validateSettings |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SettingsModelColorNameColumns(String configName, ColorColumn[] defaultValue)
configName
- the identifier the value is stored with in the
NodeSettings
objectdefaultValue
- the initial valueMethod Detail |
---|
protected SettingsModelColorNameColumns createClone()
createClone
in class SettingsModel
protected String getConfigName()
getConfigName
in class SettingsModel
protected String getModelTypeID()
getModelTypeID
in class SettingsModel
protected void loadSettingsForDialog(NodeSettingsRO settings, PortObjectSpec[] specs)
loadSettingsForDialog
in class SettingsModel
settings
- The NodeSettings
to read from.specs
- The input specs.protected void saveSettingsForDialog(NodeSettingsWO settings)
saveSettingsForDialog
in class SettingsModel
settings
- The NodeSettings
to read
from.protected void loadSettingsForModel(NodeSettingsRO settings) throws InvalidSettingsException
loadSettingsForModel
in class SettingsModel
settings
- The NodeSettings
to read
from.
InvalidSettingsException
- if load fails.protected void saveSettingsForModel(NodeSettingsWO settings)
saveSettingsForModel
in class SettingsModel
settings
- The NodeSettings
to write
into.public ColorColumn[] getColorNameColumns()
public void setColorNameColumns(ColorColumn... newValue)
newValue
- the new value to store.public String toString()
toString
in class SettingsModel
protected void validateSettingsForModel(NodeSettingsRO settings) throws InvalidSettingsException
validateSettingsForModel
in class SettingsModel
settings
- the object to read the value(s) from
InvalidSettingsException
- if the value(s) in the settings object
are invalid.protected void prependChangeListener(ChangeListener l)
prependChangeListener
in class SettingsModel
l
- listener to add.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |