コード例 #1
0
 protected void postShowContainer(Container c) {
   if ("Main".equals(c.getName())) {
     postContainerMain(c);
     aboutToShowThisContainer = null;
     return;
   }
 }
コード例 #2
0
 protected void beforeShowContainer(Container c) {
   aboutToShowThisContainer = c;
   if ("Main".equals(c.getName())) {
     beforeContainerMain(c);
     aboutToShowThisContainer = null;
     return;
   }
 }
コード例 #3
0
 protected void handleComponentAction(Component c, ActionEvent event) {
   Container rootContainerAncestor = getRootAncestor(c);
   if (rootContainerAncestor == null) return;
   String rootContainerName = rootContainerAncestor.getName();
   if (c.getParent().getLeadParent() != null) {
     c = c.getParent().getLeadParent();
   }
   if (rootContainerName == null) return;
   if (rootContainerName.equals("Main")) {
     if ("TextArea".equals(c.getName())) {
       onMain_TextAreaAction(c, event);
       return;
     }
     if ("MultiButton".equals(c.getName())) {
       onMain_MultiButtonAction(c, event);
       return;
     }
     if ("Button".equals(c.getName())) {
       onMain_ButtonAction(c, event);
       return;
     }
     if ("MultiButton2".equals(c.getName())) {
       onMain_MultiButton2Action(c, event);
       return;
     }
     if ("MultiButton4".equals(c.getName())) {
       onMain_MultiButton4Action(c, event);
       return;
     }
     if ("MultiButton1".equals(c.getName())) {
       onMain_MultiButton1Action(c, event);
       return;
     }
     if ("MultiButton3".equals(c.getName())) {
       onMain_MultiButton3Action(c, event);
       return;
     }
   }
 }