最初写法
<mx:List id="allActsList"
width="100%"
height="100%"
dragEnabled="true"
dropEnabled="true"
dragMoveEnabled="true"
allowMultipleSelection="true"
doubleClickEnabled="true"
dataProvider="{allActs}"
doubleClick="relateActs(allActsList.selectedItems, allActs, execActs);"
alpha="0.7"
showDataTips="true"
dataTipFunction="dataTipFunction"
alternatingItemColors="[0xF7F7F7, 0xFFFFFF]">
<mx:itemRenderer>
<mx:Component>
<mx:HBox horizontalScrollPolicy="off"
width="100%"
fontSize="12"
paddingTop="0"
paddingBottom="0"
horizontalAlign="left">
<mx:Label text="{data.scheduleName}"
width="90%"
paddingLeft="0"/>
<mx:Button label="修改"
width="10%"
click="outerDocument.updateActHandler()"/>
</mx:HBox>
</mx:Component>
</mx:itemRenderer>
</mx:List>
修改后写法
<mx:List id="allActsList"
width="100%"
height="100%"
dragEnabled="true"
dropEnabled="true"
dragMoveEnabled="true"
allowMultipleSelection="true"
doubleClickEnabled="true"
dataProvider="{allActs}"
doubleClick="relateActs(allActsList.selectedItems, allActs, execActs);"
alpha="0.7"
showDataTips="true"
dataTipFunction="dataTipFunction"
alternatingItemColors="[0xF7F7F7, 0xFFFFFF]">
<mx:itemRenderer>
<mx:Component>
<mx:HBox horizontalScrollPolicy="off"
width="100%"
fontSize="12"
paddingTop="0"
paddingBottom="0"
horizontalAlign="left">
<mx:Script>
<![CDATA[
override public function set data(value:Object):void
{
super.data=value;
scheduleTxt.text=value.scheduleName.toString();
}
]]>
</mx:Script>
<mx:Label id="scheduleTxt"
width="90%"
paddingLeft="0"/>
<mx:Button label="修改"
width="10%"
click="outerDocument.updateActHandler()"/>
</mx:HBox>
</mx:Component>
</mx:itemRenderer>
</mx:List>
覆盖data方法后不在报警告
分享到:
相关推荐
Unable to load class ‘javax.xml.bind.JAXBException‘(csdn)
How to bind data to different DataTemplate in Universal Windows Platform apps
This utility class is easy for developer to bind two awt,swing components with drag and drop actions. For example: DragDropUtil util=new DragDropUtil(); util.bind(java.awt.component source,java.awt....
windows server 2003 使用filezilla 时,安装好之后,点击“Active”可能会报下面的错 Creating listen socket on port 21… Failed to create listen socket on port 21 ... Server is not online! Creating listen so
如果libmysql.dll太老,可能会出现以下错误 Using unsupported buffer type: -1 (parameter: 1) QMYSQL3: Unable to bind value。 QSqlError("2036", "QMYSQL3: Unable to bind outvalues", "Using unsupported ...
Using unsupported buffer type: -1 (parameter: 1) QMYSQL3: Unable to bind value。 QSqlError("2036", "QMYSQL3: Unable to bind outvalues", "Using unsupported buffer type: 3 (parameter: 3)") 而此资源是较...
Although this paper is not intended to be a comprehensive tutorial on SystemVerilog Assertions, it is worthwhile to give a simplified definition of a property and the concurrent assertion of a ...
Android官方API文档完整版, 内容参考: onBind public final IBinder onBind(Intent intent)从类 Service 复制的描述 Return the ...Return an IBinder through which clients can call on to the service.
For example, if your header file uses the File class in ways that do not require access to the declaration of the File class, your header file can just forward declare class File; instead of having ...
An important property of such botnets is that the originator of the botnet can remotely control and issue commands to all the nodes in the botnet. Hence, it becomes possible for the attacker to issue...
Pro DNS and BIND guides you ... Background information is still included for when you need to know what to do and why you have to do it, and so that you can modify processes to meet your unique needs.
集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...
一个简单的C#工具入门程序
bind bind bind bind
You'll learn how DNS was extended to accommodate IPv6 addresses, and how you can configure a BIND name server to run on the network. This book also features methods for troubleshooting problems with ...
You'll learn how DNS was extended to accommodate IPv6 addresses, and how you can configure a BIND name server to run on the network. This book also features methods for troubleshooting problems with ...
包含以下java源文件: ...com.google.gson.internal.bind.CollectionTypeAdapterFactory.class com.google.gson.internal.bind.DateTypeAdapter.class com.google.gson.internal.bind.JsonTreeReader.class ...