コード例 #1
0
 public void propertyChange(java.beans.PropertyChangeEvent evt) {
   if (!dObj.isChangedFromUI()) {
     String name = evt.getPropertyName();
     if (name.indexOf("WebApplicationExt") > 0) { // NOI18
       // repaint view if the wiew is active and something is changed with filters
       if (WEBEXT_MV_ID.equals(dObj.getSelectedPerspective().preferredID())) {
         repaintingTask.schedule(100);
       } else {
         needInit = true;
       }
     }
   }
 }
コード例 #2
0
 public void componentClosed() {
   super.componentClosed();
   try {
     dObj.getWebExt().removePropertyChangeListener(this);
   } catch (IOException ex) {
     ex = null;
   }
 }
コード例 #3
0
 public void componentShowing() {
   super.componentShowing();
   if (needInit) {
     repaintView();
     needInit = false;
   }
   // view=new WSWebExtView(dObj);
   comp.setContentView(view);
   try {
     view.openPanel(dObj.getWebExt());
   } catch (java.io.IOException ex) {
     LOGGER.log(Level.INFO, null, ex);
   }
   view.checkValidity();
 }
コード例 #4
0
    WSWebExtView(WSWebExtDataObject dObj) {
      super(factory);

      Children rootChildren = new Children.Array();
      Node root = new AbstractNode(rootChildren);
      try {
        this.webext = dObj.getWebExt();
        rootChildren.add(new Node[] {createWebExtAttrNode(), createServletsNode()});
        /*
        rootChildren.add(new Node[]{
            createWebExtAttrNode(),
            createResRefNode(),
            createEjbRefNode(),
            createResEnvRefNode()}
        );*/
      } catch (java.io.IOException ex) {
        System.out.println("ex=" + ex);
        root.setDisplayName("Invalid WebExt");
      } finally {
        setRoot(root);
      }
    }