📄 settextenabled.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 + -