net.sf.jame.core.util
Class AbstractConfigElementListNode<T extends ConfigElement>

java.lang.Object
  extended by net.sf.jame.core.tree.Node
      extended by net.sf.jame.core.tree.DefaultNode
          extended by net.sf.jame.core.tree.MutableNode
              extended by net.sf.jame.core.util.AbstractConfigElementListNode<T>

public abstract class AbstractConfigElementListNode<T extends ConfigElement>
extends MutableNode

Author:
Andrea Medeghini

Nested Class Summary
protected  class AbstractConfigElementListNode.ConfigElementListener
           
protected  class AbstractConfigElementListNode.ListNodeEditor
           
 
Field Summary
protected  ListConfigElement<T> listElement
           
protected  AbstractConfigElementListNode.ConfigElementListener listListener
           
 
Constructor Summary
AbstractConfigElementListNode(java.lang.String nodeId, ListConfigElement<T> listElement)
          Constructs a new list node.
 
Method Summary
protected  void addLabel(java.lang.StringBuilder builder)
           
protected abstract  AbstractConfigElementNode<? extends T> createChildNode(T value)
           
protected  void createChildNodes()
           
protected  void createConfigElementNodes(ListConfigElement<T> listElement)
          Creates the nodes.
protected  NodeEditor createNodeEditor()
          Creates the node editor.
abstract  NodeValue<?> createNodeValue(java.lang.Object value)
           
 void dispose()
           
 boolean equals(java.lang.Object o)
           
abstract  java.lang.Class<?> getChildValueType()
           
protected  void nodeAdded()
           
protected  void nodeRemoved()
           
 void setSession(NodeSession session)
           
 
Methods inherited from class net.sf.jame.core.tree.MutableNode
getValueAsString, isEditable, isMutable
 
Methods inherited from class net.sf.jame.core.tree.DefaultNode
getNodeEditor
 
Methods inherited from class net.sf.jame.core.tree.Node
accept, addDescription, appendChildNode, appendChildNodeToParent, cancel, 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, isValueChanged, moveDownChildNode, moveUpChildNode, putObject, removeAllChildNodes, removeChildNode, removeObject, setChildNode, setContext, setNodeClass, setNodeEditor, setNodeLabel, setNodeValue, toString, updateChildNodes, updateNode
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

listListener

protected AbstractConfigElementListNode.ConfigElementListener listListener

listElement

protected ListConfigElement<T extends ConfigElement> listElement
Constructor Detail

AbstractConfigElementListNode

public AbstractConfigElementListNode(java.lang.String nodeId,
                                     ListConfigElement<T> listElement)
Constructs a new list node.

Parameters:
listElement - the frame element.
Method Detail

createChildNode

protected abstract AbstractConfigElementNode<? extends T> createChildNode(T value)
Parameters:
value -
Returns:

dispose

public void dispose()
Overrides:
dispose in class Node
See Also:
Node.dispose()

setSession

public void setSession(NodeSession session)
Overrides:
setSession in class Node
See Also:
Node.setSession(net.sf.jame.core.tree.NodeSession)

nodeAdded

protected void nodeAdded()
Overrides:
nodeAdded in class Node
See Also:
Node.nodeAdded()

nodeRemoved

protected void nodeRemoved()
Overrides:
nodeRemoved in class Node
See Also:
Node.nodeRemoved()

addLabel

protected void addLabel(java.lang.StringBuilder builder)
Overrides:
addLabel in class Node
See Also:
Node.addLabel(java.lang.StringBuilder)

createChildNodes

protected void createChildNodes()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

createConfigElementNodes

protected void createConfigElementNodes(ListConfigElement<T> listElement)
Creates the nodes.

Parameters:
listElement - the frame element.

getChildValueType

public abstract java.lang.Class<?> getChildValueType()
Specified by:
getChildValueType in class MutableNode
Returns:
the child type.
See Also:
MutableNode.getChildValueType()

createNodeEditor

protected NodeEditor createNodeEditor()
Description copied from class: DefaultNode
Creates the node editor.

Specified by:
createNodeEditor in class DefaultNode
Returns:
the node editor.
See Also:
DefaultNode.createNodeEditor()

createNodeValue

public abstract NodeValue<?> createNodeValue(java.lang.Object value)
Parameters:
value -
Returns: