org.mmbase.module.gui.html
Class EditState

java.lang.Object
  extended by org.mmbase.module.gui.html.EditState

public class EditState
extends Object

EditState, controls the users edit session, keeps EditStateNodes

Version:
$Id: EditState.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Daniel Ockeloen, Hans Speijer
Application:
SCAN - Removing this from Core requires changes in Module/MMObjectBuilder

Field Summary
(package private)  EditStateNode curNode
           
(package private)  MMBase mmBase
           
(package private)  Vector<EditStateNode> nodes
           
 
Constructor Summary
EditState(String user, MMBase mmBase)
           
 
Method Summary
 boolean addRelation(String owner)
          Add a relation (insrel) to the cloud.
 boolean clear()
           
 void clearHtmlValues()
           
 void clearSearchValues()
           
 void delInsSaveList()
           
 MMObjectBuilder getBuilder()
           
 String getBuilderName()
           
 MMObjectNode getEditDstNode()
           
 MMObjectNode getEditNode()
           
 MMObjectNode getEditNode(int i)
           
 String getEditNodeDstDutchName()
           
 String getEditNodeDstGuiIndicator()
           
 String getEditNodeDstName()
           
 int getEditNodeDstNumber()
           
 int getEditNodeNumber()
           
 String getEditNodeSrcDutchName()
           
 String getEditNodeSrcGuiIndicator()
           
 String getEditNodeSrcName()
           
 int getEditNodeSrcNumber()
           
 MMObjectNode getEditSrcNode()
           
 EditStateNode getEditStateNode(int i)
           
 Vector<EditStateNode> getEditStates()
           
 String getHtmlValue(String name)
           
 Hashtable<String,Object> getHtmlValues()
           
 boolean getInsSave()
           
 Vector<MMObjectNode> getInsSaveList()
           
 String getLanguage()
           
 Hashtable<String,Vector> getRelationTable()
           
 String getSearchValue(String name)
           
 Hashtable<String,Object> getSearchValues()
           
 String getSelectionQuery()
           
 String getUser()
           
 boolean isChanged()
           
 void NewNode(String owner)
           
 boolean popState()
           
 boolean pushState()
           
 void removeEd()
           
 void removeNode()
           
 void removeRelations()
           
 void setBuilder(String name)
           
 void setEditNode(String number, String userName)
           
 boolean setHtmlValue(String fieldname, Object value)
           
 void setInsSave(boolean set)
           
 boolean setSearchValue(String fieldname, Object value)
           
 void setSelectionQuery(String query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

Vector<EditStateNode> nodes

curNode

EditStateNode curNode

mmBase

MMBase mmBase
Constructor Detail

EditState

public EditState(String user,
                 MMBase mmBase)
Method Detail

pushState

public boolean pushState()

clear

public boolean clear()

popState

public boolean popState()

getEditStates

public Vector<EditStateNode> getEditStates()

setSearchValue

public boolean setSearchValue(String fieldname,
                              Object value)

getSearchValue

public String getSearchValue(String name)

getSearchValues

public Hashtable<String,Object> getSearchValues()

clearSearchValues

public void clearSearchValues()

setHtmlValue

public boolean setHtmlValue(String fieldname,
                            Object value)

getHtmlValue

public String getHtmlValue(String name)

getHtmlValues

public Hashtable<String,Object> getHtmlValues()

clearHtmlValues

public void clearHtmlValues()

setEditNode

public void setEditNode(String number,
                        String userName)

getEditNode

public MMObjectNode getEditNode()

getEditNode

public MMObjectNode getEditNode(int i)

getEditStateNode

public EditStateNode getEditStateNode(int i)

NewNode

public void NewNode(String owner)

removeNode

public void removeNode()

removeRelations

public void removeRelations()

removeEd

public void removeEd()

getEditNodeNumber

public int getEditNodeNumber()

getEditNodeSrcNumber

public int getEditNodeSrcNumber()

getEditNodeDstNumber

public int getEditNodeDstNumber()

getEditNodeSrcDutchName

public String getEditNodeSrcDutchName()

getEditNodeDstGuiIndicator

public String getEditNodeDstGuiIndicator()

getEditNodeSrcGuiIndicator

public String getEditNodeSrcGuiIndicator()

getEditNodeDstDutchName

public String getEditNodeDstDutchName()

getEditNodeSrcName

public String getEditNodeSrcName()

getEditNodeDstName

public String getEditNodeDstName()

getEditSrcNode

public MMObjectNode getEditSrcNode()

getEditDstNode

public MMObjectNode getEditDstNode()

setBuilder

public void setBuilder(String name)

getBuilderName

public String getBuilderName()

getBuilder

public MMObjectBuilder getBuilder()

setSelectionQuery

public void setSelectionQuery(String query)

getSelectionQuery

public String getSelectionQuery()

isChanged

public boolean isChanged()

addRelation

public boolean addRelation(String owner)
Add a relation (insrel) to the cloud. Does not change the editstate.

Deprecated-now:
this code should not be called
Vpro:
14 is a hardcoded value for the vpro reldef type

getInsSave

public boolean getInsSave()

setInsSave

public void setInsSave(boolean set)

getInsSaveList

public Vector<MMObjectNode> getInsSaveList()

delInsSaveList

public void delInsSaveList()

getRelationTable

public Hashtable<String,Vector> getRelationTable()

getLanguage

public String getLanguage()

getUser

public String getUser()


MMBase 2.0-SNAPSHOT - null