blob: 9adadced805148ba36a46beb7d0ac49d0ebf9e05 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2004 The Apache Software Foundation
Licensed 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.
-->
<!-- $Id$ -->
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
<component-specification
class="org.apache.tapestry.contrib.tree.components.TreeNodeView"
allow-body="yes" allow-informal-parameters="yes">
<parameter name="closeNodeImage" type="org.apache.tapestry.IAsset"
required="no" direction="in"/>
<parameter name="openNodeImage" type="org.apache.tapestry.IAsset"
required="no" direction="in"/>
<parameter name="showNodeImages" type="boolean" required="no"
direction="custom"/>
<parameter name="makeNodeDirect" type="boolean" required="no"
direction="custom"/>
<parameter name="nodeRenderFactory"
type="org.apache.tapestry.contrib.tree.components.INodeRenderFactory"
required="no" direction="custom"/>
<!--parameter name="treeStateListener"
type="org.apache.tapestry.contrib.tree.model.ITreeStateListener"
direction="custom" required="no">
</parameter-->
<reserved-parameter name="opennodeimage"/>
<reserved-parameter name="treedataview"/>
<reserved-parameter name="closenodeimage"/>
<reserved-parameter name="nodeviewdirect"/>
<component id="direct" type="DirectLink">
<binding name="parameters" expression="nodeContext"/>
<binding name="listener" expression="listeners.nodeSelect"/>
<binding name="stateful" expression="false"/>
<binding name="name" expression="selectedID"/>
<binding name="anchor" expression="cleanSelectedID"/>
</component>
<component id="showImages" type="Conditional">
<binding name="condition" expression="showImages"/>
</component>
<component id="showImages2" copy-of="showImages"/>
<!--component id="showWithoutImages" type="Conditional">
<binding name="condition" expression="showWithoutImages"/>
</component-->
<component id="makeNodeDirect" type="Conditional">
<binding name="condition" expression="makeNodeDirect"/>
</component>
<component id="makeNodeNoDirect" type="Conditional">
<binding name="condition" expression="makeNodeNoDirect"/>
</component>
<component id="imageNode" type="Image">
<binding name="image" expression="nodeImage"/>
</component>
<component id="imageNode2" copy-of="imageNode"/>
<component id="insertValue" type="Delegator">
<binding name="delegate" expression="currentRenderer"/>
</component>
<component id="insertValue2" copy-of="insertValue"/>
<component id="offset" type="Any">
<static-binding name="element">span</static-binding>
<binding name="style" expression="offsetStyle"/>
<binding name="class" expression="nodeStyleClass"/>
</component>
<private-asset name="_closeNodeImage" resource-path="plus.gif"/>
<private-asset name="_openNodeImage" resource-path="minus.gif"/>
</component-specification>