SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatInputControl
└─SwatOptionControl
└─SwatCheckboxList
└─SwatCheckboxTree
public class SwatCheckboxTree
extends SwatCheckboxList
| Field Summary | |
|---|---|
| protected SwatHtmltag | An input tag used for displaying tree nodes. |
| protected SwatHtmltag | A label tag used for displaying tree nodes. |
| protected SwatDataTreeNode | Checkbox tree structure. |
| Fields inherited from Swat.SwatCheckboxList | |
|---|---|
| columns, show_check_all, values | |
| Fields inherited from Swat.SwatOptionControl | |
|---|---|
| options, serialize_values | |
| Fields inherited from Swat.SwatInputControl | |
|---|---|
| required | |
| Constructor Summary | |
|---|---|
SwatCheckboxTree(string id) Creates a new checkbox list. |
|
| Method Summary | |
|---|---|
| void | display() Displays this widget. |
| private integer | displayNode(SwatDataTreeNode node, integer nodes, string parent_index) Displays a node in a tree as a checkbox input. |
| protected array | Gets the array of CSS classes that are applied to this checkbox tree. |
| SwatTreeNode | getTree() Gets the tree collection of SwatTreeNode objects for this tree flydown. |
| void | setTree(SwatDataTreeNode tree) Sets the tree to use for display. |
| Methods inherited from Swat.SwatCheckboxList | |
|---|---|
| createCompositeWidgets, display, displayOption, getCSSClassNames, getInlineJavaScript, getLiTag, getState, init, process, processValues, reset, setState | |
| Methods inherited from Swat.SwatOptionControl | |
|---|---|
| addOption, addOptionsByArray, getOption, getOptions, getOptionsByValue, removeOption, removeOptionsByValue | |
| Methods inherited from Swat.SwatInputControl | |
|---|---|
| getForm, init | |
| Methods inherited from Swat.SwatControl | |
|---|---|
| addMessage, getNote, printWidgetTree | |
| Methods inherited from Swat.SwatWidget | |
|---|---|
| addCompositeWidget, addMessage, confirmCompositeWidgets, copy, createCompositeWidgets, display, displayHtmlHeadEntries, getCSSClassNames, getCompositeWidget, getCompositeWidgets, getFocusableHtmlId, getHtmlHeadEntrySet, getMessages, hasMessage, init, isDisplayed, isInitialized, isProcessed, isSensitive, printWidgetTree, process, replaceWithContainer | |
| Methods inherited from Swat.SwatUIObject | |
|---|---|
| addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible | |
protected SwatHtmltag $input_tag = null
An input tag used for displaying tree nodes
protected SwatHtmltag $label_tag = null
A label tag used for displaying tree nodes
protected SwatDataTreeNode $tree = null
Checkbox tree structure
An tree structure of SwatTreeNode objects.
This structure overwrites the public options property.
public SwatCheckboxTree(string id)
Creates a new checkbox list
id - a non-visible unique id for this widget.public void display()
Displays this widget
Displays this widget displays as well as recursively displays any child widgets of this widget.
If this widget has not been initialized, it is automatically initialized before displaying.
private integer displayNode(SwatDataTreeNode node, integer nodes, string parent_index)
Displays a node in a tree as a checkbox input
node - the node to display.nodes - the current number of nodes.parent_index - the path of the parent node.protected array getCSSClassNames()
Gets the array of CSS classes that are applied to this checkbox tree
public SwatTreeNode getTree()
Gets the tree collection of SwatTreeNode objects for this
tree flydown
public void setTree(SwatDataTreeNode tree)
Sets the tree to use for display
tree - the tree to use for display.
A checkbox array widget formatted into a tree