|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.CopyNodePersistor
public class CopyNodePersistor
A persistor cloning a node's settings. It does not retain port objects or node internals. Used by copy&paste and undo.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.knime.core.node.NodePersistor |
|---|
NodePersistor.LoadNodeModelSettingsFailPolicy |
| Field Summary |
|---|
| Fields inherited from interface org.knime.core.node.NodePersistor |
|---|
CFG_DATA_FILE, CFG_DATA_FILE_DIR, CFG_HAS_SPEC_FILE, CFG_ISCONFIGURED, CFG_ISEXECUTED, CFG_MEMORY_POLICY, CFG_MODEL_FILES, CFG_NAME, CFG_NODE_MESSAGE, CFG_OUTPUT_PREFIX, CFG_SPEC_FILES, DATA_FILE_DIR, DATA_FILE_PREFIX, INTERN_FILE_DIR, MODEL_FILE_PREFIX, SETTINGS_FILE_NAME |
| Constructor Summary | |
|---|---|
CopyNodePersistor(Node original)
Create a new persistor. |
|
| Method Summary | |
|---|---|
BufferedDataTable[] |
getInternalHeldTables()
|
NodePersistor.LoadNodeModelSettingsFailPolicy |
getModelSettingsFailPolicy()
|
ReferencedFile |
getNodeInternDirectory()
|
PortObject |
getPortObject(int outportIndex)
|
PortObjectSpec |
getPortObjectSpec(int outportIndex)
|
String |
getPortObjectSummary(int outportIndex)
|
NodeSettingsRO |
getSettings()
|
String |
getWarningMessage()
|
boolean |
hasContent()
|
boolean |
isConfigured()
|
boolean |
isDirtyAfterLoad()
Whether this node should be marked as dirty after load. |
boolean |
isExecuted()
|
void |
loadInto(Node node)
Apply the settings to the new node. |
boolean |
mustWarnOnDataLoadError()
|
boolean |
needsResetAfterLoad()
|
void |
setDirtyAfterLoad()
Sets the dirty flag on this node. |
void |
setNeedsResetAfterLoad()
Indicate an error and that this node should better be reset after load. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
CopyNodePersistor(Node original)
original - The node to copy.| Method Detail |
|---|
public void loadInto(Node node)
node - the node just created.public NodePersistor.LoadNodeModelSettingsFailPolicy getModelSettingsFailPolicy()
getModelSettingsFailPolicy in interface NodePersistorpublic NodeSettingsRO getSettings()
getSettings in interface NodePersistorpublic boolean isConfigured()
isConfigured in interface NodePersistorpublic boolean isDirtyAfterLoad()
NodePersistor.setDirtyAfterLoad() has been set to true or
NodeContentPersistor.needsResetAfterLoad() returns true.
isDirtyAfterLoad in interface NodePersistorpublic boolean isExecuted()
isExecuted in interface NodePersistorpublic void setDirtyAfterLoad()
NodeContentPersistor.setNeedsResetAfterLoad() is called.
setDirtyAfterLoad in interface NodePersistorpublic BufferedDataTable[] getInternalHeldTables()
getInternalHeldTables in interface NodeContentPersistorpublic ReferencedFile getNodeInternDirectory()
getNodeInternDirectory in interface NodeContentPersistorpublic PortObject getPortObject(int outportIndex)
getPortObject in interface NodeContentPersistorpublic PortObjectSpec getPortObjectSpec(int outportIndex)
getPortObjectSpec in interface NodeContentPersistorpublic String getPortObjectSummary(int outportIndex)
getPortObjectSummary in interface NodeContentPersistorpublic String getWarningMessage()
getWarningMessage in interface NodeContentPersistorpublic boolean hasContent()
hasContent in interface NodeContentPersistorpublic boolean mustWarnOnDataLoadError()
mustWarnOnDataLoadError in interface NodeContentPersistorpublic boolean needsResetAfterLoad()
needsResetAfterLoad in interface NodeContentPersistorpublic void setNeedsResetAfterLoad()
setNeedsResetAfterLoad in interface NodeContentPersistor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||