net.sf.jame.core.tree
Class DefaultNode

java.lang.Object
  extended by net.sf.jame.core.tree.Node
      extended by net.sf.jame.core.tree.DefaultNode
Direct Known Subclasses:
AbstractConfigElementNode, AbstractConfigElementSingleNode, AttributeNode, ConfigurableExtensionReferenceElementNode, ExtensionConfigNode, ExtensionReferenceElementNode, MutableNode, SpeedElementNode, TwisterConfigNode, ViewElementNode

public abstract class DefaultNode
extends Node

Author:
Andrea Medeghini

Constructor Summary
DefaultNode(java.lang.String nodeId)
          Constructs a new node.
DefaultNode(java.lang.String nodeId, NodeValue<?> value)
          Constructs a new node.
 
Method Summary
protected abstract  NodeEditor createNodeEditor()
          Creates the node editor.
 NodeEditor getNodeEditor()
          Returns the node editor.
 java.lang.String getValueAsString()
          Returns the node value as string.
 boolean isEditable()
          Returns true if the node is editable.
 
Methods inherited from class net.sf.jame.core.tree.Node
accept, addDescription, addLabel, appendChildNode, appendChildNodeToParent, cancel, dispose, doAccept, doCancel, dump, finalize, fireNodeAccepted, fireNodeAdded, fireNodeCancelled, fireNodeChanged, fireNodeRemoved, getChildNode, getChildNodeCount, getContext, getDescription, getLabel, getNodeByPath, getNodeClass, getNodeId, getNodeLabel, getNodePath, getNodeValue, getObject, getParentNode, getPreviousNodeValue, getRootNode, getSession, hasPendingCommands, indexOf, insertChildNodeAt, insertNodeAfter, insertNodeBefore, isAttribute, isChildNode, isHighFrequency, isMutable, isValueChanged, moveDownChildNode, moveUpChildNode, nodeAdded, nodeRemoved, putObject, removeAllChildNodes, removeChildNode, removeObject, setChildNode, setContext, setNodeClass, setNodeEditor, setNodeLabel, setNodeValue, setSession, toString, updateChildNodes, updateNode
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultNode

public DefaultNode(java.lang.String nodeId)
Constructs a new node.

Parameters:
nodeId - the nodeId.

DefaultNode

public DefaultNode(java.lang.String nodeId,
                   NodeValue<?> value)
Constructs a new node.

Parameters:
nodeId - the nodeId.
value - the node value.
Method Detail

isEditable

public boolean isEditable()
Description copied from class: Node
Returns true if the node is editable.

Overrides:
isEditable in class Node
Returns:
true if the node is editable.
See Also:
Node.isEditable()

getNodeEditor

public NodeEditor getNodeEditor()
Returns the node editor.

Overrides:
getNodeEditor in class Node
Returns:
the node editor.

createNodeEditor

protected abstract NodeEditor createNodeEditor()
Creates the node editor.

Returns:
the node editor.

getValueAsString

public java.lang.String getValueAsString()
Description copied from class: Node
Returns the node value as string.

Overrides:
getValueAsString in class Node
Returns:
the string.
See Also:
Node.getValueAsString()