摘要: 本人写的这个分页是建立在公司的框架上,公司框架对分页的数据封装成了PageResultpackage com.infoservice.po3.bean;import java.util.List;public class PageResult<T> implements DataBean{ private int curPage = 1; private int pageSize = 20; private int totalPages = 0; private int totalRecords = 0; private List<T> records = null; 阅读全文
posted @ 2013-03-26 18:01 廖凯林 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://zqc-0101.iteye.com/blog/1140140 MessageFormat用法MessageFormatMessageFormat.format MessageFormat用来格式化一个消息,通常是一个字符串,比如:String str = "I'm not a {0}, age is {1,number,short}", height is {2,number,#.#};而MessageFormat可以格式化这样的消息,然后将格式化后的字符串插入到模式中的适当位置,比如:将str中的{0}用"pig"替换, 阅读全文
posted @ 2013-03-26 17:40 廖凯林 阅读(501) 评论(0) 推荐(0) 编辑