net.sf.jame.twister.common
Class PercentageElementNode

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.AttributeNode
              extended by net.sf.jame.twister.common.PercentageElementNode
Direct Known Subclasses:
AbstractPeriodicConfigNodeBuilderRuntime.AmplitudeNode, ConstantConfigNodeBuilderRuntime.ValueElementNode, OpacityElementNode

public abstract class PercentageElementNode
extends AttributeNode

Author:
Andrea Medeghini

Nested Class Summary
protected  class PercentageElementNode.ConfigElementListener
           
protected  class PercentageElementNode.PercentNodeEditor
           
 
Field Summary
static java.lang.String NODE_CLASS
           
 
Constructor Summary
PercentageElementNode(java.lang.String nodeId, ValueConfigElement<java.lang.Integer> configElement)
           
 
Method Summary
protected  NodeEditor createNodeEditor()
          Creates the node editor.
 void dispose()
           
 java.lang.String getValueAsString()
          Returns the node value as string.
 boolean isEditable()
          Returns true if the node is editable.
protected  void nodeAdded()
           
protected  void nodeRemoved()
           
 void setSession(NodeSession session)
           
 
Methods inherited from class net.sf.jame.core.tree.AttributeNode
addLabel, isAttribute
 
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, isChildNode, isHighFrequency, isMutable, isValueChanged, moveDownChildNode, moveUpChildNode, putObject, removeAllChildNodes, removeChildNode, removeObject, setChildNode, setContext, setNodeClass, setNodeEditor, setNodeLabel, setNodeValue, toString, updateChildNodes, updateNode
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODE_CLASS

public static final java.lang.String NODE_CLASS
See Also:
Constant Field Values
Constructor Detail

PercentageElementNode

public PercentageElementNode(java.lang.String nodeId,
                             ValueConfigElement<java.lang.Integer> configElement)
Parameters:
nodeId -
configElement -
Method Detail

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()

isEditable

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

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

getValueAsString

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

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

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()