|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jame.core.tree.NodeEditor
public abstract class NodeEditor
| Field Summary | |
|---|---|
protected Node |
node
|
| Constructor Summary | |
|---|---|
NodeEditor(Node node)
Constructs a new editor. |
|
| Method Summary | |
|---|---|
void |
appendChildNode(NodeValue<?> value)
|
protected abstract Node |
createChildNode(NodeValue<?> value)
|
abstract NodeValue<?> |
createNodeValue(java.lang.Object value)
|
protected void |
doAppendNode(Node node)
|
protected void |
doChangeNode(int nodeIndex,
Node node)
|
protected void |
doInsertNodeAfter(int index,
Node node)
|
protected void |
doInsertNodeBefore(int index,
Node node)
|
protected void |
doMoveDownNode(int nodeIndex)
|
protected void |
doMoveUpNode(int nodeIndex)
|
protected void |
doRemoveNode(int nodeIndex)
|
protected void |
doSetValue(NodeValue<?> value)
|
Node |
getChildNode(int index)
|
int |
getChildNodeCount()
Returns the number of childs. |
ConfigContext |
getContext()
|
int |
getIndex()
|
java.lang.String |
getNodeClass()
|
java.lang.String |
getNodeId()
|
java.lang.String |
getNodeLabel()
|
NodeValue<?> |
getNodeValue()
Returns the node value. |
java.lang.String |
getNodeValueAsString()
Returns the node value as string. |
TransferableNodeValue |
getNodeValueAsTransferable()
Returns the node value as transferable value. |
abstract java.lang.Class<?> |
getNodeValueType()
Returns the node type. |
NodeEditor |
getParentNodeEditor()
|
NodeValue<?> |
getPreviousNodeValue()
Returns the previous node value. |
boolean |
hasValue()
Returns true if value is set. |
void |
insertChildNodeAfter(int index,
NodeValue<?> value)
|
void |
insertChildNodeAt(java.lang.Integer index,
NodeValue<?> value)
|
void |
insertChildNodeBefore(int index,
NodeValue<?> value)
|
boolean |
isNodeAttribute()
|
boolean |
isNodeEditable()
|
boolean |
isNodeMutable()
|
boolean |
isParentMutable()
|
boolean |
isRefreshRequired()
|
void |
moveDownChildNode(int index)
|
void |
moveUpChildNode(int index)
|
void |
removeAllChildNodes()
|
void |
removeChildNode(int index)
|
void |
setNodeValue(NodeValue<?> value)
Sets the node value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Node node
| Constructor Detail |
|---|
public NodeEditor(Node node)
node - the node.| Method Detail |
|---|
public ConfigContext getContext()
public java.lang.String getNodeId()
public java.lang.String getNodeLabel()
public java.lang.String getNodeClass()
public boolean isNodeEditable()
public boolean isNodeMutable()
public boolean isNodeAttribute()
public boolean isRefreshRequired()
public abstract java.lang.Class<?> getNodeValueType()
public abstract NodeValue<?> createNodeValue(java.lang.Object value)
value -
public final NodeValue<?> getPreviousNodeValue()
public final NodeValue<?> getNodeValue()
public final boolean hasValue()
public final void setNodeValue(NodeValue<?> value)
value - the node value to set.public java.lang.String getNodeValueAsString()
public TransferableNodeValue getNodeValueAsTransferable()
public int getIndex()
public int getChildNodeCount()
public Node getChildNode(int index)
index -
public final void appendChildNode(NodeValue<?> value)
value -
public final void insertChildNodeBefore(int index,
NodeValue<?> value)
index - value -
public final void insertChildNodeAfter(int index,
NodeValue<?> value)
index - value -
public void insertChildNodeAt(java.lang.Integer index,
NodeValue<?> value)
index - value - public final void removeChildNode(int index)
index - public final void moveUpChildNode(int index)
index - public final void moveDownChildNode(int index)
index - public void removeAllChildNodes()
public NodeEditor getParentNodeEditor()
public boolean isParentMutable()
protected abstract Node createChildNode(NodeValue<?> value)
value - protected void doSetValue(NodeValue<?> value)
value - protected void doAppendNode(Node node)
node -
protected void doInsertNodeAfter(int index,
Node node)
index - node -
protected void doInsertNodeBefore(int index,
Node node)
index - node - protected void doRemoveNode(int nodeIndex)
nodeIndex - protected void doMoveUpNode(int nodeIndex)
nodeIndex - protected void doMoveDownNode(int nodeIndex)
nodeIndex -
protected void doChangeNode(int nodeIndex,
Node node)
nodeIndex -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||