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

java.lang.Object
  extended byse.kmr.scam.editor.util.form.Node
      extended byse.kmr.scam.editor.util.form.FormNode
          extended byse.kmr.scam.editor.util.form.PredefinedNode

public class PredefinedNode
extends FormNode

This object represents an abstract node with predefined values in the abstract form view.

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

Constructor Summary
PredefinedNode(PredefinedNode node)
          Copy constructor for the PredefinedNode object
PredefinedNode(Resource variable)
          Constructor for the PredefinedNode object
 
Method Summary
 void addPredefinedObjects(Collection values)
          Adds a feature to the PredefinedValues attribute of the PredefinedNode object
protected  String getInfo()
          Gets the info attribute of the PredefinedNode object
 Node getNewInstance()
          Gets the newInstance attribute of the PredefinedNode object
 Collection getPredefinedObjects()
           
 Map getPredefinedObjectsMap()
           
 boolean isEdited()
           
 boolean isPredefinedNode()
          Gets the predefinedNode attribute of the PredefinedNode object
 String toString()
          Description of the Method
 
Methods inherited from class se.kmr.scam.editor.util.form.FormNode
addNode, addNodes, getNamedNode, getNode, getNodes, isFormNode
 
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, 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

PredefinedNode

public PredefinedNode(Resource variable)
Constructor for the PredefinedNode object

Parameters:
variable - This object is associated with this variable

PredefinedNode

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

Parameters:
node - Copy this object
Method Detail

isEdited

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

addPredefinedObjects

public void addPredefinedObjects(Collection values)
Adds a feature to the PredefinedValues attribute of the PredefinedNode object

Parameters:
values - The feature to be added to the PredefinedValues attribute

getPredefinedObjectsMap

public Map getPredefinedObjectsMap()
Returns:
a map contining the predefined value as key with PredefinedObject as value.

getPredefinedObjects

public Collection getPredefinedObjects()
Returns:
a Collection of all PredefinedObjects

getNewInstance

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

Overrides:
getNewInstance in class FormNode
Returns:
The newInstance value

isPredefinedNode

public boolean isPredefinedNode()
Gets the predefinedNode attribute of the PredefinedNode object

Overrides:
isPredefinedNode in class Node
Returns:
The predefinedNode value

toString

public String toString()
Description of the Method

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

getInfo

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

Overrides:
getInfo in class FormNode
Returns:
The info value


Copyright © 2003 SCAM. All Rights Reserved.