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

📄 settextenabled.java

📁 个人珍藏
💻 JAVA
字号:
/*
 *编写者:陈冈
 *高校经费测算系统--设置文本框的使能状态
 *编写时间:2006-11-24
 */
package cn.edu.jfcs.sys;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Text;

public class SetTextEnabled {
	public SetTextEnabled(final Control control, boolean isEnabled) {
		if (control instanceof Composite) {
			Control[] children = ((Composite) control).getChildren();
			int j = children.length;
			for (int i = 0; i < j; i++) {
				if (children[i] instanceof Text)
					children[i].setEnabled(isEnabled);
			}
		}
	}
}

⌨️ 快捷键说明

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