易截截图软件、单文件、免安装、纯绿色、仅160KB

Flex 与 java 通讯 【转】

    2.2 代码实现
      下面给出了FlexBuilder工程的一个文件,设置了Flash的布局。
     view plaincopy to clipboardprint?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" width="600" height="400">

<mx:Label text="选择用户类型:" width="148" height="35"
fontSize="20" fontFamily="Georgia" x="38" y="40"/>

<!-- 用户类型 -->
<mx:Array id="userTypeArray">
<mx:Object label="普通用户" data="1" />
<mx:Object label="管理员" data="2" />
</mx:Array>

<!-- 下拉列表框,选择用户类型 -->
<mx:ComboBox id="userTypeCombo" width="160" height="35"
editable="false" fontSize="16"
horizontalCenter="-25" verticalCenter="-148"
dataProvider="{userTypeArray}"/>

<!-- 查询按钮 -->
<mx:Button id="selUsersBtn" label="查询" fontSize="20"
width="103.93939" height="35" x="387.8" y="37.1"
click="selUsersBtnOnClick()" />

<!-- 查询结果显示 -->
<mx:AdvancedDataGrid id="usersDataGrid" designViewDataType="flat"
x="9" y="109" width="582" height="230"
selectionMode="singleRow" enabled="true" textAlign="center"
dataProvider="{userArrayColl}" >

<!-- 表格的各列 -->
<mx:columns>
<mx:AdvancedDataGridColumn
headerText="序号" dataField="idxCol" fontSize="16"/>
<mx:AdvancedDataGridColumn
headerText="用户名" dataField="nameCol" fontSize="16"/>
<mx:AdvancedDataGridColumn
headerText="密码" dataField="pwdCol" fontSize="16"/>
</mx:columns>
</mx:AdvancedDataGri


相关文档:

Java中集合容器类List和Set的用法

List的用法
List包括List接口以及List接口的所有实现类。因为List接口实现了Collection接口,所以List接口拥有Collection接口提供的所有常用方法,又因为List是列表类型,所以List接口还提供了一些适合于自身的常用方法,如表1所示。
表1  List接口定义的常用方法及功能
从表1可以看出,List接口提供的适合于自身的 ......

Java解惑4 40不情愿的构造器

尽管在一个方法声明中看到一个throws子句是很常见的,但是在构造器的声明中看到一个throws子句就很少见了。下面的程序就有这样的一个声明。那么,它将打印出什么呢?
public class Reluctant {
private Reluctant internalInstance = new Reluctant();
public Reluctant() throws Exception {
throw n ......

java知识点汇总之一堆和堆栈(2)

Java 把内存划分成两种:一种是栈内存,另一种是堆内存。在函数中定义的一些基本类型的变量和对象的引用变量都是在函数的栈内存中分配,当在一段代码块定义一个变量时,Java 就在栈中为这个变量分配内存空间,当超过变量的作用域后,Java 会自动释放掉为该变量分配的内存空间,该内存空间可以立即被另作它用。
   ......

java中的super与c#中的base


C#中对base的解释(引自MSDN):
base 关键字用于从派生类中访问基类的成员:
调用基类上已被其他方法重写的方法。
指定创建派生类实例时应调用的基类构造函数。
基类访问只能在构造函数、实例方法或实例属性访问器中进行。
从静态方法中使用 base 关键字是错误的。
在本例中,基类 Person 和派生类 Employee 都有一个 ......

Flex的HSV to RGB ,RGB to HSV 算法

/*Copyright (c) 2006 Adobe Systems Incorporated
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, m ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号