コード例 #1
0
 private EntityOverviewPanel getEntityGeneralPanel() {
   Node[] nnChild = Utils.getChildrenNodes(Utils.getEntityNode(ddObj));
   for (int k = 0; k < nnChild.length; k++) {
     if (nnChild[k] instanceof EntityOverviewNode) {
       SectionNodePanel overviewPanel = ((EntityOverviewNode) nnChild[k]).getSectionNodePanel();
       overviewPanel.open();
       EntityOverviewPanel entityPanel = (EntityOverviewPanel) overviewPanel.getInnerPanel();
       return entityPanel;
     }
   }
   return null;
 }
コード例 #2
0
 private EjbImplementationAndInterfacesPanel getClassAndInterfacePanel() {
   assertNotNull(ddObj);
   Node[] nnChild = Utils.getChildrenNodes(Utils.getEntityNode(ddObj));
   for (int k = 0; k < nnChild.length; k++) {
     if (nnChild[k] instanceof EjbImplementationAndInterfacesNode) {
       SectionNodePanel overviewPanel =
           ((EjbImplementationAndInterfacesNode) nnChild[k]).getSectionNodePanel();
       overviewPanel.open();
       return (EjbImplementationAndInterfacesPanel) overviewPanel.getInnerPanel();
     }
   }
   return null;
 }