承认,这次纯属敷衍。被虐了一晚上,我还是什么都没弄出来,离断网时间越来越近,便找了一篇过来发了个博文。明儿加油,起码有个小目标了。唉……import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java...
分类:
其他好文 时间:
2015-06-30 10:38:39
阅读次数:
106
配置项不但启用了对类包进行扫描以实施注释驱动 Bean 定义的功能,同时还启用了注释驱动自动注入的功能( 即还隐式地在内部注册了 AutowiredAnnotationBeanPostProcessor 和 CommonAnnotationBeanPostProcessor ),因此当使用 后,.....
分类:
其他好文 时间:
2015-06-29 16:17:33
阅读次数:
109
自定义组件 下面代码直接创建两个带颜色的矩形组件: var?sq1?=?Crafty.e("2D,?Canvas,?Color")
????.attr({x:10,?y:10,?w:30,?h:30})
????.color("red");var?sq1?=?Crafty.e("2D,?Canvas,?C...
分类:
Web程序 时间:
2015-06-29 15:06:51
阅读次数:
135
Find the Weak Connected Component in the Directed GraphFind the number Weak Connected Component in the directed graph. Each node in the graph contains...
分类:
其他好文 时间:
2015-06-29 14:33:09
阅读次数:
125
Find the Connected Component in the Undirected GraphFind the number connected component in the undirected graph. Each node in the graph contains a lab...
分类:
其他好文 时间:
2015-06-28 22:50:42
阅读次数:
649
@Component 相当于实例化类的对象,其他三个注解可以理解为@Component的子注解或细化。在annotaion配置注解中用@Component来表示一个通用注释用于说明一个类是一个spring容器管理的类,此类将有spring扫描并加入容器参与ioc。即就是该类已经拉入到spring的管...
分类:
编程语言 时间:
2015-06-27 19:50:09
阅读次数:
209
1.如果不想在xml文件中配置bean,我们可以给我们的类加上spring组件注解,只需再配置下spring的扫描器就可以实现bean的自动载入。2.下面是引用spring framework开发手册中的一段话“Spring 2.5引入了更多典型化注解(stereotype annotations)...
分类:
编程语言 时间:
2015-06-27 19:38:07
阅读次数:
121
组合模式:将对象组合成树形结构以表示“部分-整体”的层次结构。组合模式使得用户对单个对象和组合对象的使用具有一致性。
适用场合:当需求中是体现部分与整体层次的结构时,以及希望用户可以忽略组合对象与单个对象的不同,统一地使用组合结构中的所有对象时,就应该考虑用组合模式。
首先定义一个Componet抽象类public abstract class Component {
protect...
分类:
其他好文 时间:
2015-06-27 16:28:20
阅读次数:
109
附带通用控件安装方法:----------基本安装1、对于单个控件,Componet-->install component..-->PAS或DCU文件-->install;2、对于带*.dpk文件的控件包,File-->Open(下拉列表框中选*.dpk)-->install即可;3、对于带*.b...
Component属性
代码示例public class MainActivity extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(...
分类:
移动开发 时间:
2015-06-27 09:53:59
阅读次数:
214