/** * 从面板获取基本信息包装为BankAccountInfoVO * * @param number * @return */ public BankAccountInfoVO wrappVO() { BankAccountInfoVO voToModify = new BankAccountInfoVO(); voToModify.setAccountId(accountIDjtf.getText()); voToModify.setAccountName(newAccountNamejtf.getText()); voToModify.setBalance(Double.parseDouble(balancejtf.getText())); return voToModify; }
/** * 显示基本信息 * * @param vo */ public void showText(BankAccountInfoVO vo) { newAccountNamejtf.setText(vo.getAccountName()); balancejtf.setText(String.valueOf(vo.getBalance())); }