- 浏览: 804661 次
- 性别:
- 来自: 上海
最新评论
-
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弹出框
文章列表
以下面的类为例子:
public class JUnitTestSample{
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@AfterClass
public static void tearDownAfterClass() throws Exception {
}
@Before
public void setUp() throws Exception {
}
...
原文地址:http://www.ruanyifeng.com/blog/2011/09/restful.html
越来越多的人开始意识到,网站即软件,而且是一种新型的软件。
这种"互联网软件"采用客户端/服务器模式,建立在分布式体系上,通过互联网通信,具有高延时(high la ...
Spinner class
package util
{
import flash.events.Event;
import flash.geom.Point;
import mx.controls.SWFLoader;
import mx.core.FlexGlobals;
import mx.core.UIComponent;
import mx.events.ResizeEvent;
import mx.managers.PopUpManager;
import spark.components.Application;
import ...
DashBorder class
package
{
import mx.core.UIComponent;
public class DashBorder extends UIComponent{
private var dashlen:Number = 5;
private var gaplen:Number = 5;
public function DashBorder(){
super();
}
override protected function updateDisplayLis ...
import java.io.InputStream;
import java.security.KeyStore;
import java.util.Arrays;
import javax.net.ssl.TrustManager;
import javax.net.ssl.TrustManagerFactory;
import org.apache.cxf.configuration.jsse.TLSClientParameters;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.frontend ...
1 command line way
mvn -npu [<goal(s)>] [<phase(s)>]
2. eclipse plugin run configuration
Goals: -npu clean install
Aternative:
1) Goals: -o clean install
2)you can check the "Offline" checkbox
package date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
public class CalculateNumberOfDatesBetween2Dates {
public static void main(String[] args) {
Stri ...
If you define a style in only one place in a document, Flex uses that definition to set a property’s value. However, an application can have several style sheets, local style definitions, external style properties, and style properties set directly on component instances. In such a situation, Flex de ...
命令 dependency:tree
作用:Displays the dependency tree for this project.
资源:http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html
AutoResizableTextArea类的定义:
<?xml version="1.0" encoding="utf-8"?>
<mx:TextArea xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" wordWrap="true&q ...
基本上有3种方式:
1)通过URL查询字符串方式给swf传参数
URL如下:
http://localhost:8080/html2Swf/bin-debug/html2Swf.swf?myName=aa&myHometown=aa
2)通过URL查询字符串方式给swf的wrapper html页面传参数
URL如下:
http://localhost:8080/html2Swf/bin-debug/html2Swf.h ...
1)继承AdvancedDataGrid/DataGrid
package component
{
import flash.display.Sprite;
import mx.collections.ArrayCollection;
import mx.controls.DataGrid;
public class RowColorDataGrid extends AdvancedDatagrid
{
public var rowColorFunction:Function;
override protecte ...
自定义的ItemRenderer要实现IDataRenderer和IDropInListItemRenderer,其中IDataRenderer里有get/set data方法,IDropInListItemRenderer里有get/set listData方法,下面定义的ItemRenderer支持labelFunction函数。
package component
{
import flash.events.FocusEvent;
import flash.events.MouseEvent;
import flash.text.TextField;
imp ...
两个对象值相同(x.equals(y) == true),但却可有不同的hash code,这句话对不对?
不对
两个对象有相同的hash code,但是值不同(x.equals(y) == false),这句话对不对?
对,hash code相同,说明value在同一个bucket里面,也可以说是hash冲突,x.equals( ...
Flex3里面如果要自定义组件,一般首先继承一个flex3中的已有组件,然后覆盖createChildren方法,并在里面实例化你自己的东西。但是Flex4中的spark组件就有些不同了,因为spark组件把逻辑和皮肤分别放在不同的类里面,如Panel,你会发现有一个PanelSkin与之对应。
那么在Flex4中如何自定义自己的组件呢? 按如下步骤:
1)New 一个Mx Skin类并继承你需要的类,比如我的为MyPanelSkin继承自PanelSkin,Flash builder里面提供了new Mx Skin的选项,完成本步骤后,你会发行MyPanelSkin里面已经有PanelSki ...