最初写法
<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方法后不在报警告
分享到:
相关推荐
在Android Studio中遇到"Unable to load class ‘javax.xml.bind.JAXBException‘"的错误,通常是由于Java运行时环境(JRE)或开发工具包(JDK)与项目的兼容性问题导致的。`javax.xml.bind.JAXBException`是Java的...
如果libmysql.dll太老,可能会出现以下错误 Using unsupported buffer type: -1 (parameter: 1) QMYSQL3: Unable to bind value。 QSqlError("2036", "QMYSQL3: Unable to bind outvalues", "Using unsupported ...
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....
public class MyTemplateSelector : DataTemplateSelector { public DataTemplate Template1 { get; set; } public DataTemplate Template2 { get; set; } protected override DataTemplate SelectTemplateCore...
##ERROR: Cause: unable to find valid certification path to requested target终极解决方法 各位兄弟,觉得我的方法有用,可以赞我一下的呦 如果你是和我一样安装完Android studio,运行第一个Android程序,发现...
Failed to bind to address(解决方案).md
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)") 而此资源是较...
标题 "Host 'localhost' Not Allowed To Connect To Server" 是一个常见的MySQL服务器错误,通常发生在尝试从本地主机连接到数据库服务时被拒绝的情况。这个错误意味着MySQL服务器的配置没有正确地允许来自localhost...
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
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 ...
包含以下java源文件: ...com.google.gson.internal.bind.CollectionTypeAdapterFactory.class com.google.gson.internal.bind.DateTypeAdapter.class com.google.gson.internal.bind.JsonTreeReader.class ...
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.
does not exist or is not a directory. [RT #35108] Added improvements to statistics channel XSL stylesheet: the stylesheet can now be cached by the browser; section headers are omitted from the ...
一个简单的C#工具入门程序
需要注意的是,在使用v-bind:class时,我们不仅可以使用三目运算符来决定class,还可以绑定包含多个属性的对象到class上。例如: ```html <div :class="{ classA: isOk, classB: !isOk }">内容 ``` 在这个例子中,...
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...
<div v-bind:class="{ active: isActive, error: hasError }"> ``` 在这个例子中,`isActive`和`hasError`是Vue实例中的数据属性,它们的值决定了`active`和`error`类是否被应用。 2. 数组语法: 数组语法允许...