se.kmr.scam.editor.util.form
Class FormNode

java.lang.Object
  extended byse.kmr.scam.editor.util.form.Node
      extended byse.kmr.scam.editor.util.form.FormNode
Direct Known Subclasses:
LabelNode, PredefinedNode

public class FormNode
extends Node

This object represents an abstract form in the abstract form view.

Version:
$Revision: 1.16 $
Author:
Jöran
Created:
den 5 augusti 2002

Field Summary
 
Fields inherited from class se.kmr.scam.editor.util.form.Node
_cat
 
Constructor Summary
protected FormNode()
          Constructor for the FormNode object
  FormNode(FormNode node)
          Copy constructor for the FormNode object
  FormNode(Resource variable)
          Constructor for the FormNode object
 
Method Summary
 void addNode(Node node)
          Adds a sub-node to the Node attribute of the FormNode object
 void addNodes(Collection nodes)
          Adds a collection of sub-nodes to the Node attribute of the FormNode object
protected  String getInfo()
          Gets the info attribute of the FormNode object
 Map getNamedNode()
          Gets the mapping between named variables and nodes.
 Node getNewInstance()
          Gets the newInstance attribute of the FormNode object
 Node getNode()
          Gets the node attribute of the FormNode object
 Collection getNodes()
          Gets the valueNodes attribute of the FormNode object
 boolean isEdited()
           
 boolean isFormNode()
          Gets the formNode attribute of the FormNode object
 String toString()
          Description of the Method
 
Methods inherited from class se.kmr.scam.editor.util.form.Node
getDescription, getDisplayType, getId, getIsEditable, getIsFormNode, getIsLabelNode, getIsMultipleBindingsAllowed, getIsPredefinedNode, getIsTextNode, getIsVisible, getLanguage, getValidationType, getValue, getValueObject, getVariable, isEditable, isLabelNode, isMultipleBindingsAllowed, isPredefinedNode, isTextNode, isVisible, setDescriptions, setDisplayType, setEditable, setEdited, setMultipleBindingsAllowed, setValidationType, setValueObject, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormNode

protected FormNode()
Constructor for the FormNode object


FormNode

public FormNode(Resource variable)
Constructor for the FormNode object

Parameters:
variable - This object is associated with this variable

FormNode

public FormNode(FormNode node)
Copy constructor for the FormNode object

Parameters:
node - Copy this object
Method Detail

addNode

public void addNode(Node node)
Adds a sub-node to the Node attribute of the FormNode object

Parameters:
node - The sub-node to be added to the Node attribute

addNodes

public void addNodes(Collection nodes)
Adds a collection of sub-nodes to the Node attribute of the FormNode object

Parameters:
nodes - The collection to be added to the Node attribute

getNodes

public Collection getNodes()
Gets the valueNodes attribute of the FormNode object

Returns:
The valueNodes value

getNode

public Node getNode()
Gets the node attribute of the FormNode object

Returns:
The node value

getNamedNode

public Map getNamedNode()
Gets the mapping between named variables and nodes.

Returns:
The mapping

getNewInstance

public Node getNewInstance()
Gets the newInstance attribute of the FormNode object

Overrides:
getNewInstance in class Node
Returns:
The newInstance value

isFormNode

public boolean isFormNode()
Gets the formNode attribute of the FormNode object

Overrides:
isFormNode in class Node
Returns:
The formNode value

toString

public String toString()
Description of the Method

Overrides:
toString in class Node
Returns:
Description of the Return Value

getInfo

protected String getInfo()
Gets the info attribute of the FormNode object

Overrides:
getInfo in class Node
Returns:
The info value

isEdited

public boolean isEdited()
Overrides:
isEdited in class Node
Returns:


Copyright © 2003 SCAM. All Rights Reserved.