processaccountform.java

来自「我在加拿大学习的一个比较复杂的在线银行程序.」· Java 代码 · 共 77 行

JAVA
77
字号
package com.ebusiness.ebank.form;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author not attributable * @version 1.0 */import org.apache.struts.validator.ValidatorActionForm;public class ProcessAccountForm extends ValidatorActionForm{    private String amount;    private String from;    private String to;    private String action;    public String getAmount()   {       return this.amount;   }   public void setAmount(String amount)   {       this.amount = amount;   }   public String getFrom()   {       return this.from;   }   public void setFrom(String from)   {       this.from = from;   }   public String getTo()   {      return this.to;   }   public void setTo(String to)   {      this.to = to;   }   public String getAction()   {      return this.action;   }   public void setAction(String action)   {      this.action = action;   }   public String getFromAccountNo()   {      return this.from.substring(from.indexOf("-") + 1).trim();   }   public String getToAccountNo()   {      return this.to.substring(to.indexOf("-") + 1).trim();   }   public String toString()   {      return "From: " + this.from + "  To: " + this.to          + "  Amount: " + this.amount + "  Action: " + this.action;   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?