java
lqxabcde
这个作者很懒,什么都没留下…
展开
-
java常用方法1
public static String dateToString(Date date, String formatString) { SimpleDateFormat format = new SimpleDateFormat(formatString); return format.format(date); } public static Date stringToDa...2009-02-12 17:17:30 · 87 阅读 · 0 评论 -
ddddddddddddddddddd
public boolean lastEnable() { return nextEnable(); } public boolean nextEnable() { return current * pageSize < count; } public boolean previoEnable() { return current > 1; } ...2009-09-10 16:01:34 · 346 阅读 · 0 评论 -
dfsdfsdf
public void setStart(int start) { this.start = start; } public void firstPage() { current = 1; } public void nextPage(int iCurrent) { current = iCurrent + 1; if (current * pageSize &...2009-09-10 16:01:11 · 193 阅读 · 0 评论 -
dfsdf
public class Pagination { public static final int PAGESIZE=5; //分页每页的记录数 public static final String currentTag = "current"; //当前页 public static final String firstAction = "First...2009-09-10 16:00:41 · 104 阅读 · 0 评论 -
dsfsfdddddddd
//最后一页 if (pagination.lastEnable()) { results.append("<a href=\"javascript:lastPage_"+property+"(this.document."+name+");\" "); if (target != null) { results.append(" target=\""+target2009-09-10 15:57:49 · 519 阅读 · 0 评论 -
sdfsdf
private String generateTable(Pagination pagination) throws JspException { StringBuffer results = new StringBuffer(); //the "currentpage/pages" align left, html start. results.append("<t...2009-09-10 15:57:02 · 74 阅读 · 0 评论 -
gf454
private String generateGoJS(String method) { StringBuffer results = new StringBuffer(); results.append("function go(frm) {\n"); results.append("ajaxAnywhere.submitAJAX("); results.append(...2009-09-10 15:55:39 · 69 阅读 · 0 评论 -
333
lastValue = "<img src='"+sRootPath+"/images/last.gif'"+"/>"; gotoPageStart = RequestUtils.message(super.pageContext, bundle, localeKey, "label.tag.page.turn"); gotoPageEnd = Reques...2009-09-10 15:55:00 · 72 阅读 · 0 评论 -
1111ddddd
import com.***.it.framework.vo.common.Pagination;public final class PaginationLinkAjaxTag extends LinkTag{ private String zone; private String method ; private String firstValue; private String next...2009-09-10 15:54:35 · 128 阅读 · 0 评论 -
java常用方法(String)8
/** Removes all spaces from a string */ public static String removeSpaces(String str) { StringBuffer newString = new StringBuffer(); for (int i = 0; i < str.length(); i++) { ...2009-02-12 17:31:30 · 439 阅读 · 0 评论 -
java常用方法(String)7
/** * Creates a Map from an encoded name/value pair string * @param str The string to decode and format * @param trim Trim whitespace off fields * @return a Map of name/value...2009-02-12 17:31:02 · 70 阅读 · 0 评论 -
java常用方法(String)6
public static final String module = StringUtil.class.getName(); /** * Replaces all occurances of oldString in mainString with newString * @param mainString The original string ...2009-02-12 17:30:00 · 70 阅读 · 0 评论 -
java常用方法5
//判断某一个IP是否为内网IP public static boolean isInnerIP(String ipAddress) { boolean isInnerIp = false; long ipNum = getIpNum(ipAddress); /** * 私有IP:A类 10.0.0.0-10.255.255.255 B类 172.16.0.0-172...2009-02-12 17:28:02 · 60 阅读 · 0 评论 -
java常用方法4
public static String getUTF(String str) { if (str.equals("") || str.length() < 1) return ""; int length = str.length(); if (length % 2 != 0) return ""; String strArray[] = new Stri...2009-02-12 17:27:34 · 54 阅读 · 0 评论 -
java常用方法3
/** *@param 2005-11-03 09:23:00.0 *@return 2005-11-03 * @throws ParseException * */ public static Date getFormatDateNoTime(Date date) { String tempStr = Util.dateToString(date, Con...2009-02-12 17:26:44 · 60 阅读 · 0 评论 -
java常用方法2
public static void setSessionAttributes( String[] keys, Object[] values, HttpSession session) { for (int i = 0; i < keys.length; i++) { session.setAttribute(keys[i], values[i]); }...2009-02-12 17:25:47 · 62 阅读 · 0 评论 -
修改myeclipse字体
修改myeclipse字体原创 2013-11-06 15:21:19 · 104 阅读 · 0 评论