<?xml version="1.0" encoding="UTF-8"?>

<!--
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 
 Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
 
 The contents of this file are subject to the terms of either the GNU
 General Public License Version 2 only ("GPL") or the Common Development
 and Distribution License("CDDL") (collectively, the "License").  You
 may not use this file except in compliance with the License. You can obtain
 a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
 or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific
 language governing permissions and limitations under the License.
 
 When distributing the software, include this License Header Notice in each
 file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
 Sun designates this particular file as subject to the "Classpath" exception
 as provided by Sun in the GPL Version 2 section of the License file that
 accompanied this code.  If applicable, add the following below the License
 Header, with the fields enclosed by brackets [] replaced by your own
 identifying information: "Portions Copyrighted [year]
 [name of copyright owner]"
 
 Contributor(s):
 
 If you wish your version of this file to be governed by only the CDDL or
 only the GPL Version 2, indicate your decision by adding "[Contributor]
 elects to include this software in this distribution under the [CDDL or GPL
 Version 2] license."  If you don't indicate a single choice of license, a
 recipient has the option to distribute your version of this file under
 either the CDDL, the GPL Version 2 or to extend the choice of license to
 its licensees as provided above.  However, if you add GPL Version 2 code
 and therefore, elected the GPL Version 2 license, then the option applies
 only if the new code is made subject to such option by the copyright
 holder.
-->

<!-- ========== UIData Properties ========================================== -->


<!-- template

      <property>
        <description>
        </description>
        <display-name></display-name>
        <icon></icon>
        <property-name></property-name>
        <property-class>java.lang.String</property-class>
      </property>

-->
<root xmlns:xi="http://www.w3.org/2001/XInclude">
    <xi:include href="uicomponent-props.xml" xpointer="xpointer(/root/*)"/>

    <property>
        <description>
          Zero-relative row number of the first row to be displayed.  If this
          property is set to zero, rendering will begin with the first row of
          the underlying data.
        </description>
        <display-name>First Row Index</display-name>
        <icon></icon>
        <property-name>first</property-name>
        <property-class>int</property-class>
        <property-extension>
            <value-expression-enabled>true</value-expression-enabled>
        </property-extension>
    </property>

    <property>
        <description>
          Flag indicating whether there is model data available for the row
          selected by the current value of the "rowIndex" property.
        </description>
        <display-name>Row Available Flag</display-name>
        <icon></icon>
        <property-name>rowAvailable</property-name>
        <property-class>boolean</property-class>
        <property-extension>
            <tag-attribute>false</tag-attribute>
        </property-extension>
    </property>

    <property>
        <description>
          The number of rows of model data that are available for processing
          by this component.  If the number of rows is unknown, this property
          will be set to -1.
        </description>
        <display-name>Row Count</display-name>
        <icon></icon>
        <property-name>rowCount</property-name>
        <property-class>int</property-class>
        <property-extension>
            <tag-attribute>false</tag-attribute>
        </property-extension>
    </property>

    <property>
        <description>
          An object representing the model data for the row selected by the
          current value of the "rowIndex" property.
        </description>
        <display-name>Row Data</display-name>
        <icon></icon>
        <property-name>rowData</property-name>
        <property-class>java.lang.Object</property-class>
        <property-extension>
            <tag-attribute>false</tag-attribute>
        </property-extension>
    </property>

    <property>
        <description>
          Zero-relative index of the currently selected row from the underlying
          model data.  No error will occur if this property is set to point at
          a row for which no model data exists.  To ensure data availability,
          check the state of the "rowAvailable" property after modifying this
          property.
        </description>
        <display-name>Row Index</display-name>
        <icon></icon>
        <property-name>rowIndex</property-name>
        <property-class>int</property-class>
        <property-extension>
            <tag-attribute>false</tag-attribute>
            <value-expression-enabled>true</value-expression-enabled>        
        </property-extension>
    </property>

    <property>
        <description>
          The number of rows to display, starting with the one identified by the
          "first" property.  If this value is set to zero, all available rows in
          the underlying data model will be displayed.
        </description>
        <display-name>Rows To Display</display-name>
        <icon></icon>
        <property-name>rows</property-name>
        <property-class>int</property-class>
        <property-extension>
            <value-expression-enabled>true</value-expression-enabled>
        </property-extension>
    </property>

    <property>
        <description>
          The current value of this component.
        </description>
        <display-name>Value</display-name>
        <icon></icon>
        <property-name>value</property-name>
        <property-class>java.lang.Object</property-class>
        <property-extension>
            <value-expression-enabled>true</value-expression-enabled>
        </property-extension>
    </property>

    <property>
        <description>
          Name of a request-scope attribute under which the model data for the
          row selected by the current value of the "rowIndex" property (i.e.
          also the current value of the "rowData" property) will be exposed.
        </description>
        <display-name>Row Data Attribute</display-name>
        <icon></icon>
        <property-name>var</property-name>
        <property-class>java.lang.String</property-class>       
    </property>
</root>
