⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myselectionadapter.java

📁 生成与Oracle相关的Ibatis相关配置文件及Java源码
💻 JAVA
字号:
/*
 * Copyright (c) 2008 胜利油田胜利软件有限责任公司. All rights reserved.
 */
package com.victorysoft.code.ui;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;

import com.victorysoft.swt.base.TableController;
import com.victorysoft.swt.base.TableControllerInit;

/**
 * 
 * @author 于景洋
 * @newtime Oct 31, 2008,3:27:52 PM
 * @version 1.0
 * @see     
 * @since   JDK 1.5.0
 */
public class MySelectionAdapter extends SelectionAdapter implements TableControllerInit {

	private TableController controllor;

	public void setTableController(TableController controllor) {
		this.controllor = controllor;
	}

	public TableController getTableController() {
		return this.controllor;
	}

	public void widgetSelected(SelectionEvent e) {
		Button b = (Button) e.getSource();
		if (b.getSelection() == true) {
			System.out.println("selected");
		} else {
			System.out.println("unselected");
		}
	}
}

⌨️ 快捷键说明

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