<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<control xmlns="http://www.sap.com/sap.ui.library.xsd">
    <name>ExactAttribute</name>
    <derived/>
    <author>SAP SE</author>
    <documentation>An element for defining attributes and sub-attributes used within the Exact pattern.</documentation>
    <deprecation since="1.38"></deprecation>
    <baseType>sap.ui.core/Element</baseType>
    <properties>
        <property name="text" type="sap.ui.core/string" group="Misc">
            <documentation>The attribute name</documentation>
        </property>
        <property name="selected" type="sap.ui.core/boolean" group="Misc">
            <documentation>Specifies whether the attribute shall be selected</documentation>
        </property>
        <property name="width" type="sap.ui.core/int" defaultValue="168" group="Misc" since="1.7.0">
            <documentation>Specifies the width of the corresponding list in pixels. The value must be between 70 and 500.</documentation>
        </property>
        <property name="listOrder" type="sap.ui.ux3/ExactOrder" defaultValue="Select" since="1.7.1">
            <documentation>The order how the sublists of this attribute should be displayed.</documentation>
        </property>
        <property name="showSubAttributesIndicator" type="sap.ui.core/boolean" defaultValue="true" group="Misc">
            <documentation>Specifies whether the attribute shall have sub values for visual purposes.
The indicator which is a little arrow beside an attribute in the list is computed automatically
(getShowSubAttributesIndicator_Computed() of sap.ui.ux3.ExactAttribute).
In the case that a supply function is attached, and the supplyActive attribute has value 'true',
then the Exact pattern needs a hint if sub attributes are available. The showSubAttributesIndicator attribute is
considered then and has to be maintained. If the back-end does not support count-calls, for example,
showSubAttributesIndicator should be set to true.</documentation>
        </property>
        <property name="additionalData" type="sap.ui.core/object" group="Misc">
            <documentation>An example for additional data are database keys</documentation>
        </property>
        <property name="supplyActive" type="sap.ui.core/boolean" defaultValue="true" group="Misc">
            <documentation>The supplyAttributes event is only fired if supplyActive has value true which is the default. After firing the event, the attribute is automatically set to false.
The idea is that a supply function is called only once when the data is requested. To enable the event again it is possible to manually set the attribute back to true.</documentation>
        </property>
        <property name="autoActivateSupply" type="sap.ui.core/boolean" defaultValue="false" group="Misc">
            <documentation>If you want the supply function to be called on every select, you can set the autoActivateSupply attribute to true. In this case, supplyActive is automatically
set to true on every unselect.</documentation>
        </property>
    </properties>
    <events>
        <event name="supplyAttributes" allowPreventDefault="false">
            <documentation>A supply function is a handler which is attached to the supplyAttributes event. The event is fired when the corresponding ExactAttribute is selected, it was already selected when a handler is attached or function getAttributes() is called.</documentation>
            <parameters>
                <parameter name="attribute" type="sap.ui.ux3/ExactAttribute">
                    <documentation>The ExactAttribute</documentation>
                </parameter>
            </parameters>
        </event>
    </events>
    <aggregations default="attributes">
        <aggregation name="attributes" type="sap.ui.ux3/ExactAttribute" cardinality="0..n">
            <documentation>Values (sub attributes) of this attribute</documentation>
        </aggregation>
    </aggregations>
    <methods>
        <method name="scrollTo" type="sap.ui.core/void">
            <documentation>Scrolls the corresponding list of this attribute until the given direct child attribute is visible. If the corresponding list is not yet visible the call is buffered until the list is available.</documentation>
            <parameters>
                <parameter name="oAttribute" type="sap.ui.ux3/ExactAttribute">
                    <documentation>The direct child attribute</documentation>
                </parameter>
            </parameters>
        </method>
        <method name="getShowSubAttributesIndicator_Computed" type="sap.ui.core/void">
            <documentation>See attribute showSubAttributesIndicator</documentation>
        </method>
    </methods>
</control>
