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

📄 gfmwindow.java

📁 BPO作业管理系统DMP的插件
💻 JAVA
字号:
package com.cmspad.dmp.bundles.gfm;import org.eclipse.swt.SWT;import org.eclipse.swt.events.ShellAdapter;import org.eclipse.swt.events.ShellEvent;import org.eclipse.swt.layout.GridData;import org.eclipse.swt.layout.GridLayout;import org.eclipse.swt.widgets.Composite;import org.eclipse.swt.widgets.Shell;import com.cmspad.dmp.DMPProject;import com.cmspad.dmp.bundles.gfm.widget.GFMCheckerComposite;import com.cmspad.dmp.bundles.gfm.widget.GFMInputerComposite;import com.cmspad.dmp.bundles.gfm.widget.GFMVerifierComposite;/** * 通用文件管理器的窗口样式 *  * @author yipsilon *  */class GFMWindow {	protected Shell shell;	private DMPProject.Status type;	private long pId;	private long uId;	public GFMWindow(DMPProject.Status type, long uid, long pid) {		this.type = type;		this.pId = pid;		this.uId = uid;		createContents();	}	public Shell getShell() {		return shell;	}	/**	 * Create contents of the window	 */	protected void createContents() {		shell = new Shell(SWT.ON_TOP | SWT.DIALOG_TRIM);		final GridLayout gridLayout = new GridLayout();		gridLayout.verticalSpacing = 0;		gridLayout.marginWidth = 0;		gridLayout.marginHeight = 0;		gridLayout.horizontalSpacing = 0;		shell.setLayout(gridLayout);		shell.setSize(440, 60);		shell.addShellListener(new ShellAdapter(){			@Override			public void shellClosed(ShellEvent e) {				e.doit = true;			}		});		Composite composite = null;		switch (type) {			case INPUTING:				composite = new GFMInputerComposite(shell, uId, pId);				break;			case CHECKING:				composite = new GFMCheckerComposite(shell, uId, pId);				break;			case VERIFING:				composite = new GFMVerifierComposite(shell, uId, pId);				break;		}		if (composite != null) {			composite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));		}		//	}}

⌨️ 快捷键说明

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