您的位置:首页 > 其它

ATM系统实现[9]——事务查询窗口[00原创]

2007-07-23 20:23 585 查看
package cn.edu.ynu.sei.atm.client.ui;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.List;

/**
* 历史事务显示窗口
* @author 88250
*/
public class TransactionShowComposite extends Composite
{
/**
* 存取记录提示标签
*/
private Label wdLbl = null;

/**
* 转帐记录提示标签
*/
private Label transferLbl = null;

/**
* 返回按钮
*/
private Button returnBtn = null;

/**
* 转帐事务列表
*/
private List transferList = null;

/**
* 存取事务列表
*/
private List wdList = null;

/**
* 创建历史事务查询显示窗口
* @param parent 父窗口容器
*/
public TransactionShowComposite(Composite parent)
{
super(parent, SWT.NONE);
createContents();
}

/**
* 创建历史事务显示窗口内含控件
*/
private void createContents()
{
wdLbl = new Label(this, SWT.NONE);
wdLbl.setText("存取记录");
wdLbl.setBounds(7, 7, 55, 20);

transferLbl = new Label(this, SWT.NONE);
transferLbl.setText("转帐记录");
transferLbl.setBounds(13, 114, 55, 20);

returnBtn = new Button(this, SWT.NONE);
returnBtn.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
returnBtn.setText("返回");
returnBtn.setBounds(238, 223, 40, 30);

wdList = new List(this, SWT.V_SCROLL | SWT.BORDER);
wdList.setBounds(10, 27, 268, 83);

transferList = new List(this, SWT.V_SCROLL | SWT.BORDER);
transferList.setBounds(13, 134, 265, 83);
}

/**
* 返回转帐记录列表
* @return 转帐历史事务列表
*/
public List getTransferList()
{
return transferList;
}

/**
* 返回存取记录列表
* @return 存取记录列表
*/
public List getWDList()
{
return wdList;
}

/**
* 取得返回按钮
* @return 返回按钮
*/
public Button getReturnBtn()
{
return returnBtn;
}

@Override
public void dispose()
{
super.dispose();
}

@Override
protected void checkSubclass()
{
// Disable the check that prevents subclassing of SWT components
}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: