|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jame.core.tree.Node
public abstract class Node
| Constructor Summary | |
|---|---|
Node(java.lang.String nodeId)
Constructs a new node. |
|
| Method Summary | |
|---|---|
void |
accept()
Accepts node value. |
protected void |
addDescription(java.lang.StringBuilder builder)
|
protected void |
addLabel(java.lang.StringBuilder builder)
|
void |
appendChildNode(Node node)
Appends a child. |
protected void |
appendChildNodeToParent(Node node)
Appends a child to parent. |
void |
cancel()
Cancels node value. |
void |
dispose()
|
protected void |
doAccept()
|
protected void |
doCancel()
|
java.lang.String |
dump()
|
protected void |
finalize()
|
protected void |
fireNodeAccepted(NodePath path)
|
protected void |
fireNodeAdded(NodePath path)
|
protected void |
fireNodeCancelled(NodePath path)
|
protected void |
fireNodeChanged()
|
protected void |
fireNodeRemoved(NodePath path)
|
Node |
getChildNode(int index)
Returns a child. |
int |
getChildNodeCount()
Returns the number of childs. |
ConfigContext |
getContext()
|
java.lang.String |
getDescription()
|
java.lang.String |
getLabel()
|
Node |
getNodeByPath(java.lang.String path)
|
java.lang.String |
getNodeClass()
Returns the nodeClass. |
NodeEditor |
getNodeEditor()
Returns the node editor. |
java.lang.String |
getNodeId()
Returns the nodeId. |
java.lang.String |
getNodeLabel()
Returns the nodeLabel. |
NodePath |
getNodePath()
Returns the node path. |
NodeValue<?> |
getNodeValue()
Returns the node value. |
java.lang.Object |
getObject(java.lang.String key)
|
Node |
getParentNode()
Returns the parent. |
NodeValue<?> |
getPreviousNodeValue()
Returns the previous node value. |
RootNode |
getRootNode()
|
NodeSession |
getSession()
|
java.lang.String |
getValueAsString()
Returns the node value as string. |
boolean |
hasPendingCommands()
Returns true if node has pending commands. |
int |
indexOf(Node node)
|
void |
insertChildNodeAt(int index,
Node node)
|
void |
insertNodeAfter(int index,
Node node)
|
void |
insertNodeBefore(int index,
Node node)
|
boolean |
isAttribute()
Returns true if the node is an attribute. |
boolean |
isChildNode(Node node)
|
boolean |
isEditable()
Returns true if the node is editable. |
boolean |
isHighFrequency()
|
boolean |
isMutable()
Returns true if the node is mutable. |
protected static boolean |
isValueChanged(java.lang.Object value,
java.lang.Object prevValue)
|
void |
moveDownChildNode(int index)
|
void |
moveUpChildNode(int index)
|
protected void |
nodeAdded()
|
protected void |
nodeRemoved()
|
void |
putObject(java.lang.String key,
java.lang.Object value)
|
void |
removeAllChildNodes()
Removes all the children. |
void |
removeChildNode(int nodeIndex)
Removes a child. |
void |
removeObject(java.lang.String key)
|
void |
setChildNode(int index,
Node node)
|
void |
setContext(ConfigContext context)
|
protected void |
setNodeClass(java.lang.String nodeClass)
Sets the nodeClass. |
protected void |
setNodeEditor(NodeEditor editor)
Sets the node editor. |
protected void |
setNodeLabel(java.lang.String nodeLabel)
Sets the nodeClass. |
protected void |
setNodeValue(NodeValue<?> value)
Sets the node value. |
void |
setSession(NodeSession session)
|
java.lang.String |
toString()
|
protected void |
updateChildNodes()
|
protected void |
updateNode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Node(java.lang.String nodeId)
nodeId - the nodeId.| Method Detail |
|---|
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.ThrowableObject.finalize()public boolean isHighFrequency()
public void dispose()
protected void fireNodeChanged()
protected void fireNodeAdded(NodePath path)
protected void fireNodeRemoved(NodePath path)
protected void fireNodeAccepted(NodePath path)
protected void fireNodeCancelled(NodePath path)
public NodePath getNodePath()
public void setSession(NodeSession session)
session - public NodeSession getSession()
public void setContext(ConfigContext context)
context - public ConfigContext getContext()
public Node getParentNode()
public boolean isChildNode(Node node)
node -
public Node getChildNode(int index)
index - the child index.
public int getChildNodeCount()
public NodeValue<?> getNodeValue()
public NodeValue<?> getPreviousNodeValue()
protected final void setNodeValue(NodeValue<?> value)
value - the node value to set.
protected static boolean isValueChanged(java.lang.Object value,
java.lang.Object prevValue)
value - prevValue -
protected void updateNode()
protected void updateChildNodes()
public NodeEditor getNodeEditor()
protected void setNodeEditor(NodeEditor editor)
editor - the node editor to set.public java.lang.String getNodeId()
public java.lang.String getNodeClass()
protected void setNodeClass(java.lang.String nodeClass)
the - nodeClass.public java.lang.String getNodeLabel()
protected void setNodeLabel(java.lang.String nodeLabel)
the - nodeClass.public boolean hasPendingCommands()
public final void accept()
session - public final void cancel()
protected final void doAccept()
protected final void doCancel()
public boolean isMutable()
public boolean isEditable()
public boolean isAttribute()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()protected void appendChildNodeToParent(Node node)
node - the child to append.public void appendChildNode(Node node)
node - the child to append.public void removeChildNode(int nodeIndex)
index - the child to remove.public void removeAllChildNodes()
public void insertNodeBefore(int index,
Node node)
index - node -
public void insertNodeAfter(int index,
Node node)
index - node -
public void insertChildNodeAt(int index,
Node node)
index - node - public void moveUpChildNode(int index)
index - public void moveDownChildNode(int index)
index -
public void setChildNode(int index,
Node node)
index - public java.lang.String getValueAsString()
public final java.lang.String getLabel()
protected void addLabel(java.lang.StringBuilder builder)
builder - public final java.lang.String getDescription()
protected void addDescription(java.lang.StringBuilder builder)
builder - public int indexOf(Node node)
node -
protected void nodeAdded()
protected void nodeRemoved()
public java.lang.String dump()
public Node getNodeByPath(java.lang.String path)
path -
public void putObject(java.lang.String key,
java.lang.Object value)
key - value - public java.lang.Object getObject(java.lang.String key)
key -
public void removeObject(java.lang.String key)
key - public RootNode getRootNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||