欢迎来到天天文库
浏览记录
ID:15237336
大小:1.19 MB
页数:26页
时间:2018-08-02
《设计模式简明手册》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、设计模式简明手册252525FactoryMethod25AbstractFactory25Builder25Prototype25Singleton25Adapter25Bridge25Composite25Decorator25Facade25Flyweight25Proxy25ChainofResponsibility25Command25Interpreter25Iterator25Mediator25Memento25Observer25State25Strategy25TemplateMethod25Visi
2、torAsofMicrosoft®InternetExplorer4.0,youcanapplmultimedia-styleeffectstoyourWebpagesusingvisualfiltersandtransitions.YoucanapplyvisualfiltersandtransitionstostandardHTMLcontrols,suchastextcontainers,images,andotherwindowlessobjects.Transitionsaretime-varyingfilte
3、rsthatcreateatransitionfromonevisualstatetoanother.Bycombiningfiltersandtransitionswithbasicscripting,youcancreatevisuallyengagingandinteractivedocuments.InternetExplorer5.5andlatersupportsarichvarietyofoptimizedfilters.Clickthefollowingbuttontoseeademonstrationo
4、fmanyofthesefiltersandhowtousetheProceduralsurfacesarecoloredsurfacesthatdisplaybetweenthecontentofanobjectandtheobject'sbackground.Proceduralsurfacesdefineeachpixel'sRGBcolorandalphavaluesdynamically.Onlytheprocedureusedtocomputethesurfaceisstoredinmemory.Thecon
5、tentofanobjectwithaproceduralsurfaceappliedisnotaffectedbytheproceduralsurface.警告:此类已序列化的对象将不再与以后的Swing版本兼容。当前的序列化支持适合在运行相同Swing版本的应用程序之间短期存储或RMI。从1.4版开始,已在java.beans包中加入对所有JavaBeansTM的长期存储支持。请参见XMLEncoder。引用类型和原始类型的行为完全不同,并且它们具有不同的语义。引用类型和原始类型具有不同的特征和用法,它们包括:大小和
6、速度问题,这种类型以哪种类型的数据结构存储,当引用类型和原始类型用作某个类的实例数据时所指定的缺省值。对象引用实例变量的缺省值为null,而原始类型实例变量的缺省值与它们的类型有关。当JAVA程序违反了JAVA的语义规则时,JAVA虚拟机就会将发生的错误表示为一个异常。违反语义规则包括2种情况。一种是JAVA类库内置的语义检查。例如数组下标越界,会引发IndexOutOfBoundsException;访问null的对象时会引发NullPointerException。另一种情况就是JAVA允许程序员扩展这种语义检查,程
7、序员可以创建自己的异常,并自由选择在何时用throw关推动了Web的迅速发展,常用的浏览器现在均支持25
此文档下载收益归作者所有