![]() |
|
||||||||||||||
| | 网站首页 | 数据库教程 | web编程 | 服务器 | 程序设计 | | ||
|
||
|
|||||
| ATM系统实现[9]——事务查询窗口[00原创] | |||||
作者:佚名 文章来源:不详 点击数: 更新时间:2007-9-2 ![]() |
|||||
|
正在装载数据…… 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 divvents subclassing of SWT components } } 本文来源:http://blog.csdn.net/DL88250/archive/2007/07/23/1703521.aspx
|
|||||
| 文章录入:admin 责任编辑:admin | |||||
| 【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 | |||||
| 网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!) |
| | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 网站公告 | 网站地图 | 管理登录 | | |||
|