flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Kessler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33526) findRowIndicies to complement findRowIndex
Date Sun, 28 Apr 2013 02:06:16 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13643874#comment-13643874

Mark Kessler commented on FLEX-33526:

Built SDK successfully.  Test app works.

<?xml version="1.0" encoding="utf-8"?>
   Test application
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               height="100%" width="100%"


        import mx.collections.ArrayCollection;

        protected var acTestData:ArrayCollection = new ArrayCollection();

        *  Click event handler for btnFind1
        protected function btnFind1_OnClick():void
            txtResults.text = String( dgDemo.findRowIndices("label", ["t","r","y"], "contains")

        *  Click event handler for btnFind2
        protected function btnFind2_OnClick():void
            txtResults.text = String( dgDemo.findRowIndices("label", [3,5], "contains") );

        *  Creation complete event handler.
        protected function onCreationComplete():void
            //Setup the datagrid test data dataProvider.
            acTestData.addItem({index:0, label:"1 abc"});
            acTestData.addItem({index:1, label:"2 def"});
            acTestData.addItem({index:2, label:"3 ghi"});
            acTestData.addItem({index:3, label:"4 jkl"});
            acTestData.addItem({index:4, label:"5 mno"});
            acTestData.addItem({index:5, label:"6 pqr"});
            acTestData.addItem({index:6, label:"7 stu"});
            acTestData.addItem({index:7, label:"8 vwx"});
            acTestData.addItem({index:8, label:"9 yz"});
            acTestData.addItem({index:9, label:"10 abc"});
            acTestData.addItem({index:10, label:"11 def"});
            acTestData.addItem({index:11, label:"12 jkl"});
            acTestData.addItem({index:12, label:"13 mno"});
            acTestData.addItem({index:13, label:"14 pqr"});
            acTestData.addItem({index:14, label:"15 stu"});
            acTestData.addItem({index:15, label:"16 vwx"});
            acTestData.addItem({index:16, label:"17 yz"});
            acTestData.addItem({index:17, label:"18 abc"});
            acTestData.addItem({index:18, label:"19 def"});
            acTestData.addItem({index:19, label:"20 ghi"});


        <s:VerticalLayout horizontalAlign="center" verticalAlign="middle" gap="0" />

    <s:Label fontWeight="bold" text="Components showing the new methods affects" />
    <s:DataGrid id="dgDemo" dataProvider="{acTestData}" requestedRowCount="10" width="200"

    <s:HGroup paddingTop="10">
        <s:Button id="btnFind1" label="Get [t,r,y]" click="btnFind1_OnClick();" />
        <s:Button id="btnFind2" label="Get [3,5]" click="btnFind2_OnClick();" />

    <s:TextInput id="txtResults"  />


> findRowIndicies to complement findRowIndex
> ------------------------------------------
>                 Key: FLEX-33526
>                 URL: https://issues.apache.org/jira/browse/FLEX-33526
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: Spark: ButtonBar, Spark: ComboBox, Spark: DataGrid, Spark: DropDownList,
Spark: Grid, Spark: List, Spark: TabBar
>    Affects Versions: Apache Flex Next
>            Reporter: Mark Kessler
>            Assignee: Mark Kessler
>            Priority: Minor
> Made findRowIndicies to return an array index when searching for an array of values.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message