1:设计模式在MVP模式中,为了让UI层能够从逻辑层上分离下来,设计师们在UI层与逻辑层之间加了一层interface。无论是UI开发人员还是数据开发人员,都要尊重这个契约、按照它进行设计和开发。这样,理想状态下无论是Web
UI还是Window UI就都可以使用同一套数据逻辑了。借鉴MVP的IVi...
分类:
其他好文 时间:
2014-05-18 20:20:30
阅读次数:
382
代理模式:为其它对象提供一种代理以控制对这个对象的访问。代码:package
xiao;class Girl{ private String name; public void setName(String name){
this.name = name; }}interface GiveGift....
分类:
其他好文 时间:
2014-05-18 19:25:15
阅读次数:
275
C#代码如下: public interface IConfigInfo { } public
class A : IConfigInfo { } public class b { void bb(IConfigInfo a) { Type t =
a.GetType(); } }VB.net代码如...
分类:
其他好文 时间:
2014-05-18 18:53:46
阅读次数:
188
本文参考《Android系统源代码情景分析》,作者罗升阳
一、测试代码:
~/Android/external/binder/server
----FregServer.cpp
~/Android/external/binder/common
----IFregService.cpp...
分类:
移动开发 时间:
2014-05-18 06:08:05
阅读次数:
494
class、interface、struct的区别...
分类:
其他好文 时间:
2014-05-18 04:04:55
阅读次数:
367
本文参考《Android系统源代码情景分析》,作者罗升阳
一、测试代码:
~/Android/external/binder/server
----FregServer.cpp
~/Android/external/binder/common
----IFregService.cpp
...
分类:
移动开发 时间:
2014-05-18 02:54:20
阅读次数:
552
接口:打印机接口interface Printer{ public void
read();}函数一:佳能打印机class CanPrinter implements Printer{ public void read(){
System.out.println("Canr...
分类:
编程语言 时间:
2014-05-18 00:54:20
阅读次数:
302
// ViewController.h// qq登入器//// Created by pg on
14-5-17.// Copyright (c) 2014年 mqd. All rights reserved.#import @interface
ViewController : UIViewCon...
分类:
其他好文 时间:
2014-05-17 23:15:56
阅读次数:
276
数据类型:基本数据类型和引用数据类型基本数据类型包括 数值型(整数类型
byte,short,int,long;浮点类型 float double);字符型char;布尔型boolean引用数据类型包括
类class;接口interface ;数组2.字面量整数字面量为整数(int);小数字面量为双...
分类:
移动开发 时间:
2014-05-17 21:26:27
阅读次数:
321
/** * 事件接口 即被观察者 * * @author Host * */ public
interface Event { void attach(Listener listener); void detach(Listener
listener); void notifyListener();...
分类:
其他好文 时间:
2014-05-17 18:33:38
阅读次数:
423