欢迎来到天天文库
浏览记录
ID:42596482
大小:47.91 KB
页数:19页
时间:2019-09-18
《tapestry初探》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、--=====sun-java=====begin===================--1:Serializable--序列化接口,类通过实现java.io.Serializable接口以启用其序列化功能。未实现此接口的类将无法使其任何状态序列化或反序列化。可序列化类的所有子类型本身都是可序列化的publicinterfacejava.lang.Serializable{}2:Cloneable--克隆接口,类实现了Cloneable接口,以指示Object.clone()方法可以合法地对该类实例进行按字段
2、复制。publicinterfacejava.lang.Cloneable{}3:Comparable--比较接口,此接口强行对实现它的每个类的对象进行整体排序。这种排序被称为类的自然排序,类的compareTo方法被称为它的自然比较方法。实现此接口的对象列表(和数组)可以通过Collections.sort(和Arrays.sort)进行自动排序。实现此接口的对象可以用作有序映射(SortMap)中的键或有序集合(SortSet)中的元素,无需指定比较器(Comparator)。publicinterf
3、acejava.lang.Comparable{publicintcompareTo(To);}4:Locale对象表示了特定的地理、政治和文化地区。需要Locale来执行其任务的操作称为语言环境敏感的操作,它使用Locale为用户量身定制信息。publicfinalclassjava.util.LocaleimplementsCloneable,Serializable{…}5:Java语言枚举类型的公共基本类。publicabstractclassEnum>implem
4、entsComparable,Serializable{…}--=======apache-tapestry===begin========--1:IResourceLocation--资源位置接口publicinterfaceorg.apache.tapestry.IResourceLocation{publicabstractURLgetResourceURL();publicabstractStringgetName();publicabstractIResourceLocationgetLocal
5、ization(Localelocale);publicabstractIResourceLocationgetRelativeLocation(Strings);publicabstractStringgetPath();publicabstractLocalegetLocale();}2:ILocation--位置接口publicinterfaceorg.apache.tapestry.ILocation{publicabstractIResourceLocationgetResourceLocation(
6、);publicabstractintgetLineNumber();publicabstractintgetColumnNumber();}3:ILocatable--定位接口publicinterfaceorg.apache.tapestry.ILocatable{publicabstractILocationgetLocation();}4:ILocationHolder--定位持有接口publicinterfaceorg.apache.tapestry.ILocationHolderextendsILo
7、catable{publicabstractvoidsetLocation(ILocationilocation);}5:BaseLocatable--定位基类publicclassorg.apache.tapestry.spec.BaseLocatableimplementsILocationHolder{publicBaseLocatable(){}publicvoidsetLocation(ILocationlocation){_location=location;}publicILocationgetL
8、ocation(){return_location;}privateILocation_location;}6:IPropertyHolder--属性持有接口publicinterfaceorg.apache.tapestry.util.IPropertyHolder{publicabstractListgetPropertyNames();publicabstractvoidsetP
此文档下载收益归作者所有