Archive for February, 2011

Posted by Tatyana at 28 February 2011

Category: Dev, Flex

Tags: , , , ,

<?xml version="1.0" encoding="utf-8"?>
<mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        <![CDATA[
            import mx.controls.Label;

            public function willShowResult(result:Label, myVar:String):Boolean {
                if (myVar== 'XXX') {
                    return false;
                }
                return true;
            }
        ]]>
    </mx:Script>

    <mx:columns>
        <mx:DataGridColumn
            dataField="myVar"
            headerText="My var"/>
        <mx:DataGridColumn
            dataField="result"
            headerText="My result">
            <mx:itemRenderer>
                <mx:Component>
                    <mx:Label text="{outerDocument.willShowResult(this, data.myVar) ? data.result : ' ' }"/>
                </mx:Component>
            </mx:itemRenderer>
        </mx:DataGridColumn>
    </mx:columns>

</mx:DataGrid>
VN:F [1.9.13_1145]
Rating: 0.0/5 (0 votes cast)
Share

Posted by Tatyana at 28 February 2011

Category: Java, Tip

Tags: , , , ,

If an autocomplete stopped working go

Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced ->  check for “Other Java Proposals”

VN:F [1.9.13_1145]
Rating: 0.0/5 (0 votes cast)
Share