com.mizar.forms
Class FormInfo

java.lang.Object
  extended by com.mizar.forms.FormInfo

public class FormInfo
extends java.lang.Object

See FacesUtils.getInfoBox in the MizarFaces library for an example of use.

See Also:
Form

Constructor Summary
FormInfo(java.lang.Object jpaBean)
           
FormInfo(java.lang.Object jpaBean, boolean forceNulls)
           
 
Method Summary
 java.lang.Object getBeanInstance()
           
 java.lang.String getDesc()
           
 int getMaximumTraversal()
           
 java.lang.String getName()
           
 java.util.HashMap<java.lang.String,SectionInfo> getSectionMap()
           
 java.util.ArrayList<SectionInfo> getSections()
           
 boolean isDeletable()
           
 boolean isEditable()
           
 boolean isForceNulls()
           
 boolean isSelectable()
           
 void setBeanInstance(java.lang.Object beanInstance)
           
 void setDeletable(boolean deletable)
           
 void setDesc(java.lang.String desc)
           
 void setEditable(boolean editable)
           
 void setForceNulls(boolean forceNulls)
           
 void setMaximumTraversal(int maximumNesting)
           
 void setName(java.lang.String name)
           
 void setSections(java.util.ArrayList<SectionInfo> groups)
           
 void setSelectable(boolean selectable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormInfo

public FormInfo(java.lang.Object jpaBean)
         throws java.lang.annotation.AnnotationFormatError
Parameters:
jpaBean -
Throws:
java.lang.annotation.AnnotationFormatError

FormInfo

public FormInfo(java.lang.Object jpaBean,
                boolean forceNulls)
         throws java.lang.annotation.AnnotationFormatError
Parameters:
jpaBean -
forceNulls - should be set to true when using FormInfo to create a matrix report such as a spreadsheet.
Throws:
java.lang.annotation.AnnotationFormatError
Method Detail

setName

public void setName(java.lang.String name)
Parameters:
name -

getName

public java.lang.String getName()
Returns:

setDesc

public void setDesc(java.lang.String desc)

getDesc

public java.lang.String getDesc()

setSelectable

public void setSelectable(boolean selectable)
Parameters:
selectable -

isSelectable

public boolean isSelectable()
Returns:

setEditable

public void setEditable(boolean editable)
Parameters:
editable -

isEditable

public boolean isEditable()
Returns:

setDeletable

public void setDeletable(boolean deletable)
Parameters:
deletable -

isDeletable

public boolean isDeletable()
Returns:

setSections

public void setSections(java.util.ArrayList<SectionInfo> groups)
Parameters:
groups -

getSections

public java.util.ArrayList<SectionInfo> getSections()
Returns:

setBeanInstance

public void setBeanInstance(java.lang.Object beanInstance)
Parameters:
beanInstance -

getBeanInstance

public java.lang.Object getBeanInstance()
Returns:

getSectionMap

public java.util.HashMap<java.lang.String,SectionInfo> getSectionMap()
Returns:

setMaximumTraversal

public void setMaximumTraversal(int maximumNesting)
Parameters:
maximumNesting -

getMaximumTraversal

public int getMaximumTraversal()
Returns:

setForceNulls

public void setForceNulls(boolean forceNulls)

isForceNulls

public boolean isForceNulls()