org.ztemplates.form.impl
Class ZFormWrapper

java.lang.Object
  extended by org.ztemplates.form.impl.ZFormWrapper

public final class ZFormWrapper
extends Object

form wrapper that can be used to manipulate a form in a generic way

Author:
gerdziegler.de

Constructor Summary
ZFormWrapper(ZIForm obj)
          creates form model with name "" (empty String)
ZFormWrapper(ZIForm obj, String name)
          creates form Model with specified name
 
Method Summary
 ZFormMembers getFormMembers()
          recursively finds all properties for the given object
 List<ZFormWrapper> getForms()
           
 ZScriptDependency getJavaScriptDependency()
           
 String getName()
           
 List<ZOperationWrapper> getOperations()
           
 List<ZPropertyWrapper> getProperties()
           
 Set<ZProperty> getPropertiesByName(Set<String> propNames)
           
 void initPropertyNames()
           
 ZFormMembers readFromValues(ZFormValues formValues)
          returns the modified form members
 void setName(String name)
           
 void setReadable(boolean b)
           
 void setRequired(boolean b)
           
 void setWriteable(boolean b)
           
 void visitBreadthFirst(org.ztemplates.form.impl.ZIFormVisitor vis)
           
 void visitDepthFirst(org.ztemplates.form.impl.ZIFormVisitor vis)
           
 void writeToValues(ZFormValues formValues)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZFormWrapper

public ZFormWrapper(ZIForm obj)
             throws Exception
creates form model with name "" (empty String)

Parameters:
obj -
Throws:
Exception

ZFormWrapper

public ZFormWrapper(ZIForm obj,
                    String name)
             throws Exception
creates form Model with specified name

Parameters:
obj -
name -
Throws:
Exception
Method Detail

initPropertyNames

public void initPropertyNames()
                       throws Exception
Throws:
Exception

getName

public String getName()

getPropertiesByName

public Set<ZProperty> getPropertiesByName(Set<String> propNames)
                                   throws Exception
Throws:
Exception

setName

public void setName(String name)

readFromValues

public ZFormMembers readFromValues(ZFormValues formValues)
                            throws Exception
returns the modified form members

Parameters:
formValues -
Returns:
Throws:
Exception

writeToValues

public void writeToValues(ZFormValues formValues)
                   throws Exception
Throws:
Exception

getForms

public List<ZFormWrapper> getForms()

getOperations

public List<ZOperationWrapper> getOperations()

getProperties

public List<ZPropertyWrapper> getProperties()

visitDepthFirst

public void visitDepthFirst(org.ztemplates.form.impl.ZIFormVisitor vis)
                     throws Exception
Throws:
Exception

visitBreadthFirst

public void visitBreadthFirst(org.ztemplates.form.impl.ZIFormVisitor vis)
                       throws Exception
Throws:
Exception

getFormMembers

public ZFormMembers getFormMembers()
                            throws Exception
recursively finds all properties for the given object

Parameters:
obj -
Returns:
Throws:
Exception

getJavaScriptDependency

public ZScriptDependency getJavaScriptDependency()
                                          throws Exception
Throws:
Exception

setWriteable

public void setWriteable(boolean b)
                  throws Exception
Throws:
Exception

setReadable

public void setReadable(boolean b)
                 throws Exception
Throws:
Exception

setRequired

public void setRequired(boolean b)
                 throws Exception
Throws:
Exception


Copyright © 2011. All Rights Reserved.