com.waveset.ui
Class EditForm.CheckboxTree

java.lang.Object
  extended bycom.waveset.ui.EditForm.Item
      extended bycom.waveset.ui.EditForm.CheckboxTree
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
EditForm

public static class EditForm.CheckboxTree
extends EditForm.Item


Nested Class Summary
static class EditForm.CheckboxTree.TreeNode
          A node in the tree.
 
Constructor Summary
EditForm.CheckboxTree(java.lang.String title, EditForm.CheckboxTree.TreeNode[] tree)
           
 
Method Summary
 EditForm.CheckboxTree.TreeNode[][] flattenTree()
          This is used to turn a tree into a two-dimensional array.
 EditForm.CheckboxTree.TreeNode[] getTree()
           
 
Methods inherited from class com.waveset.ui.EditForm.Item
clone, getAlignment, getHelpRef, getHTMLClass, getName, getPageInformation, getTitle, getValue, isNoWrap, isRenderAllHTML, isRequired, setAlignment, setForm, setHelpRef, setHTMLClass, setNoWrap, setPageInformation, setRenderAllHTML, setRenderInTitleColumn, setRequired, toHTML, toHTML
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditForm.CheckboxTree

public EditForm.CheckboxTree(java.lang.String title,
                             EditForm.CheckboxTree.TreeNode[] tree)
Method Detail

getTree

public EditForm.CheckboxTree.TreeNode[] getTree()

flattenTree

public EditForm.CheckboxTree.TreeNode[][] flattenTree()
This is used to turn a tree into a two-dimensional array. For rendering the tree in HTML table cells, this is an intermediate step to actually creating the HTML by wrapping the cells with table, tr, and td tags. Uses the recursive gatherTreeCells() which actually fills in the cells.