- 浏览: 804671 次
- 性别:
- 来自: 上海
最新评论
-
qdujunjie:
如果把m换成具体的数字,比如4或者5,会让读者更明白
m阶B树中“阶”的含义 -
java-admin:
不错,加油,多写点文章
关于Extjs的mixins和plugin -
xiehuaidong880827:
你好,我用sencha cmd打包完本地工程后,把app.js ...
ExtJS使用Sencha Cmd合并javascript文件为一个文件 -
KIWIFLY:
lwpan 写道inverse = "true&qu ...
Hibernate中什么时候使用inverse=true -
luedipiaofeng:
good
消除IE stop running this script弹出框
文章列表
当你在flex的方法中用了可变参数后,你会发现这些参数传到java端后出现意想不到的情况,即flex会自动把你的实际参数封装到一个Array里面去,这样就会导致问题,如flex/java端取不到参数的值
override public function call(methodName:String, ... parameters):IOperation {
Assert.state(remoteObject != null, "The remoteObject property must not be null");
return new RemoteObjec ...
Getting the class from an object
Class(getDefinitionByName(getQualifiedClassName(obj)));
Getting Class info of an Object in Flex
Frequently we may come across one requirement when we will be having one object and we want to know which class this object belongs to. In java, its as simple as object. g ...
为了使用treeGrid,通常你需要定义自己的DataDescriptor和data model,下面是一个案例.
public class HierarchySearchResultVO
{
public function HierarchySearchResultVO(){
this._id=UIDGenerator.createUID();
}
/**
* An unique identifier of the created HierarchySearchResultVO object.
*/
[Transient]
...
public class EnvironmentDataDescriptor extends DefaultDataDescriptor
{
private var logger:org.as3commons.logging.ILogger=LoggerFactory.getClassLogger(EnvironmentDataDescriptor);
public function EnvironmentDataDescriptor()
{
super();
}
override public function getChild ...
/**
*为简化,只列举两个字段
*/
public class WestMedicationBo implements Serializable
{
private static final long serialVersionUID = 1L;
private boolean isPaid;
private long rpId;
//以下是用eclipse自动自动getter,setter得到,主要注意boolean类型
public boolean isPaid() {
...
1)方式一,mxml内嵌xml数据赋值方式,Embedded XMLListCollection
<mx:Tree id="env_list" labelField="label" showRoot="true" width="243" alternatingItemColors="[#FFFFFF, #FFFFFF]">
<mx:XMLListCollection>
<mx:XMLList>
<node label= ...
Web工程师必备的在线工具箱
http://www.iteye.com/news/26572
下面是Flex4官网提供的,里面介绍了sdk里面基本组件的案例,以及第三方提供的效果,控制等
http://www.adobe.com/devnet-archive/flex/tourdeflex/web/
Flex4 custom skin相关博客
http://saturnboy.com/2009/09/flex4-component-states-skin-states/
http://blog.digitalbackcountry.com/2009/07/building-custom-com ...
Overview
蒙特卡洛(Monte Carlo)方法,或称计算机随机模拟方法,是一种基于“随机数”的计算方法。这一方法源于美国在第二次世界大战中研制原子弹的“曼哈顿计划”。该计划的主持人之一、数学家冯·诺伊曼用驰名世界的赌城—摩纳哥的Monte Carlo—来命名这种方法,为它蒙上了一层神秘色彩。
基本思路
针对实际问题建立一个简单且便于实现的概率统计模型,使所求的量(或解)恰好是该模型某个指标的概率分布或者数字特征。
对模型中的随机变量建立抽样方法,在计算机上进行模拟测试,抽取足够多的随机数,对有关事件进行统计
对模拟试验结果加以分析,给出所求解的估计及其精度(方差)的估计
必要时,还应 ...
Structure:
model
event
PaginationEvent.as
vo
IPageable.as
PaginatedResults.as
view
paginationBarImg(folder)
PaginationBar.mxml
PaginationImgBar.mxml
Souce code:
package model.event
{
import flash.events.Event;
public class PaginationEvent extend ...
package component.alert
{
import flash.display.Sprite;
import flash.events.EventPhase;
import mx.controls.Alert;
import mx.core.FlexGlobals;
import mx.core.IFlexDisplayObject;
import mx.core.IFlexModule;
import mx.core.IFlexModuleFactory;
import mx.core.UIComponent;
import mx.eve ...
java端
public class Person{
public static class Address{
}
}
现在flex端只需要Address.as,不需要Person.as,那么我可以直接将flex端的Address.as映射到java端的内部类Address上,用如下语句:
RemoteClass(Alias="com.aa.bb.Person#Address"),即用#来映射到内部类
要点:
1) 外围类不能直接访问嵌套类的成员,不论嵌套类是静态的还是非静态的,原因很简单,如果只实例化了外围类的对象,根本没有创建出嵌套类的对象,那外围类的对象访问什么?
2) 非静态的嵌套类才称为“内部类”(inner class),静态的嵌套类就称为"静态嵌套类"
3) 内部类的实例化是通过外围类的实例new出来的,即必须现有外围类对象存在,
OuterClass.InnerClass innerObject = outerObject.new InnerClass(),通过这种方式我们也很容易看出为什么InnerClass 能直接访问OuterClass的成员
...
本文引用自:http://www.codestyle.org/java/servlets/faq-Threads.shtml
Index
Servlet thread implementation
• Are servlets multi-threaded?
• What is a service thread and how do I create one?
• How does the container handle concurrent requests?
• Are you saying there is only one servlet instance for all r ...
本文引用自:http://en.wikipedia.org/wiki/Java_Servlet
Advantages over CGI
The advantages of using Servlets are their fast performance and ease of use combined with more power over traditional CGI (Common Gateway Interface). Traditional CGI scripts written in Java have a number of disadvantages when it com ...
maven安装jar文件到本地资源库
mvn install:install-file -DgroupId=jmail -DartifactId=jmail -Dversion=1.0 -Dfile=mail.jar -Dpackaging=jar -DgeneratePom=true
Maven使用deploy上传jar包到远程库
https://blog.csdn.net/roy_70/article/details/75267831
一、环境准备
首先需要在本地环境安装好maven,并且在环境变量配置好,具体安装以及配置方式可以参考我的上一篇文章:Maven安装以及环境配置——ht ...