EAS BOS隐藏分录右上角的按钮
2015-11-03 17:09
281 查看
public static void hideHMDEntryButtons(KDTable table) {
if (table.getParent() == null || table.getParent().getParent() == null)
return;
// 隐藏按钮
Component c = table.getParent().getParent();
if (c instanceof DetailPanel) {
JPanel panel = (JPanel) c;
// 获取controlPanel
Component[] components = panel.getComponents();
for (int i = 0; i < components.length; i++) {
Component component = components[i];
if ("controlPanel".equals(component.getName())) {
component.setVisible(false);
}
}
}
}
if (table.getParent() == null || table.getParent().getParent() == null)
return;
// 隐藏按钮
Component c = table.getParent().getParent();
if (c instanceof DetailPanel) {
JPanel panel = (JPanel) c;
// 获取controlPanel
Component[] components = panel.getComponents();
for (int i = 0; i < components.length; i++) {
Component component = components[i];
if ("controlPanel".equals(component.getName())) {
component.setVisible(false);
}
}
}
}
相关文章推荐
- 微信公众平台开发初探(一)WeiPHP与它调用插件的过程
- Ambari配置&安装的若干坑
- linux基础 --- shell编程
- 法非正义
- 编译安装在centos7的nginx
- protobuff的repeat参数是类似数组的存在
- CentOS 7网络配置
- Codevs_P2123 麦森数2
- PEP8 Python 编码规范整理
- lightoj 1114(trie)
- iOS小记
- JavaScript基础学习(五)---Math(算数)对象
- opensource codes configure and compile with toolchain
- Android 向SD卡写入文件_1
- KETTLE实现数据的删除和更新
- mysql之my.cnf
- Spring集成ActiveMQ
- android OOM问题经验
- DRBD 部署
- android教程学习第11讲:nit进程脚本如何解析启动脚本