1;
public String[] getField(){ }
public void insertRow(){ }
public Object remove(){ }
public Object removeByIndex(int index){ }
public void removeAll(){ }
public void gotoRow(int index){ }
public void setValue(String code,String value){ }
this.setValue(this.getIndexByCode(code),value);
if(index > -1 && index < contentList.size() && contentList.size() > else if(index >= contentList.size())currentIndex = contentList.size() - else currentIndex = -1;
if(contentList.removeAll(contentList))this.gotoRow(-1); Object swapObject = contentList.remove(index); if(swapObject != null){ }
swapObject = null; return swapObject;
currentIndex--;
this.gotoRow(currentIndex);
return this.removeByIndex(currentIndex); String[] values = new String[fileds.length]; for(int i=0;i contentList.add(values); currentIndex++; this.gotoRow(currentIndex); values[i] = \; return this.fileds; 0)currentIndex = index; - 31 - public void setValue(int index,String value){ } public String getValue(String code){ } public String getValue(int index){ } public int getIndexByCode(String code){ } public String createDOM(){ String xml = \; xml += \; String[] values = null; for(int i=0;i xml += \ + i + \; values = (String[])contentList.get(i); for(int k=0;k xml += \; xml += \index=\\\ + k + \Filed=\\\ + fileds[k] xml += values[k]; xml += \; if(code == null)return -1; int i=0; while(i return -1; if(fileds[i].equals(code))return i; i++; if(index == -1)return null; String[] values = (String[])contentList.get(currentIndex); if(values == null)return null; else return values[index]; return this.getValue(this.getIndexByCode(code)); if(index > -1 && currentIndex > -1){ } String[] values = (String[])contentList.get(currentIndex); if(value == null)value = \; values[index] = value; + \; - 32 - } } for(int i=0;i xml += \; return xml; xml += \ + i + \ + fileds[i] + \; Util.java package eb.cstop.util; import java.awt.FlowLayout; import java.security.MessageDigest; import javax.swing.*; import eb.cstop.swing.CrystalButton; public class Util { private final static String[] hex = { \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, \,\,\,\,\,\,\,\,\,\,\,\, \,\,\,\, \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, \,\,\,\,\,\,\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x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F }; public static void main(String[] args) { } /** * MD5算法加密 * * @param password * @return */ public static String doEncrypt(String password) { try { } return password; MessageDigest digest = MessageDigest.getInstance(\); byte[] bytes = digest.digest(password.getBytes()); password = Util.encrypt(bytes); e.printStackTrace(); password = null; System.out.println(Util.Hex10To16(51)); JFrame frame = new JFrame(); frame.getContentPane().setLayout(new FlowLayout()); frame.setSize(320, 240); frame.getContentPane().add(new CrystalButton(\按钮\)); frame.getContentPane().add(new CrystalButton(\按钮\)); frame.setVisible(true); } catch (Exception e) { - 34 - } /** * 加密计算 * @param bytes * @return */ private static String encrypt(byte[] bytes) { } /** * JavaScript escape函数算法 * @param value * @return */ public static String escape(String value) { StringBuffer buffer = new StringBuffer(); int length = value.length(); int ch = 0; for (int i = 0; i < length; i++) { ch = value.charAt(i); if ('A' <= ch && ch <= 'Z') buffer.append((char) ch); buffer.append((char) ch); buffer.append((char) ch); || ch == '~' || ch == '*' || ch == '\\'' || ch == '(' || ch == ')') else if ('a' <= ch && ch <= 'z') else if ('0' <= ch && ch <= '9') else if (ch == '-' || ch == '_' || ch == '.' || ch == '!' String value = \; String stmp = \; for (int i = 0; i < bytes.length; i++) { } return value.toUpperCase(); stmp = Integer.toHexString(bytes[i] & 0XFF); if (stmp.length() == 1) value = value + \ + stmp; value = value + stmp; else buffer.append((char) ch); buffer.append('%'); buffer.append(hex[ch]); else if (ch <= 0x007F) { - 35 -