blob: 9856c071116ee5ef53c0166474b197463d0e8aed [file]
<!--
#* Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.*#
-->
<!--A velocity macro which prints all nodes in specified list-->
#macro (printState $list)
#if($list)
#foreach ($node in $list)
$node<br>
#end
#end
#end
This page provides a demonstration of the CheckboxTree component.
<p/>
In this example the Page is a TreeListener and in the Log below it will print all
events recorded.
$form
<div style="width:55em; border:1px solid #CCCCCC; margin-top: 20px;">
<div style="border-bottom: 1px solid #CCC; background-color: #C0C0C0; padding: 5px">
<b>Log</b>
</div>
<dl style="padding-left: 5px">
<dt><strong>Selected</strong></dt>
<dd>#printState($selected)</dd>
<dt><strong>Deselected</strong></dt>
<dd>#printState($deselected)</dd>
<dt><strong>Expanded</strong></dt>
<dd>#printState($expanded)</dd>
<dt><strong>Collapsed</strong></dt>
<dd>#printState($collapsed)</dd>
</dl>
</div>
<br>
$optionForm