java代码获取dep新增f7字段
//锁定Prd/Media 下拉列表框
KDComboBox billingType = (KDComboBox) DEPUtils.findComponetByName(getUIContentPane(), "combobillingType");
billingType.setEnabled(false);
public static Component findComponetByName(Container container,String name)
{
Component comps[] = container.getComponents();
if(comps != null && comps.length > 0){
for(int i = 0; i < comps.length; i++){
if(comps[i] instanceof EditUI)continue;
if((comps[i] instanceof KDPanel) || (comps[i] instanceof KDScrollPane) || (comps[i] instanceof KDSplitPane) || (comps[i] instanceof KDTabbedPane) || (comps[i] instanceof KDLabelContainer) || (comps[i] instanceof KDContainer) || (comps[i] instanceof JPanel) || (comps[i] instanceof JViewport)){
Component j= findComponetByName((Container)comps[i],name);
if(j!=null)
{
return j;
}
}else
if(comps[i].getName()!=null&&comps[i].getName().equals(name))
{
return comps[i];
}
}
}
return null;
}
java代码获取dep新增f7字段
本文2024-09-16 22:53:39发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-51071.html