Examples of TreeNodeChangeEvent


Examples of com.taobao.zeus.web.platform.client.module.jobmanager.event.TreeNodeChangeEvent

    RPCS.getGroupService().createGroup(gname, presenter.getGroupModel().getId(), isDirectory, new AbstractAsyncCallback<String>() {
      @Override
      public void onSuccess(String groupId) {
        NewGroupWindow.this.hide();
        Info.display("操作成功", "新建组成功");
        TreeNodeChangeEvent event=new TreeNodeChangeEvent();
        event.setNeedSelectProviderKey(TreeKeyProviderTool.genGroupProviderKey(groupId));
        presenter.getPlatformContext().getPlatformBus().fireEvent(event);
      }
    });
  }
View Full Code Here

Examples of com.taobao.zeus.web.platform.client.module.jobmanager.event.TreeNodeChangeEvent

    RPCS.getGroupService().createGroup(gname, presenter.getGroupModel().getId(), isDirectory, new AbstractAsyncCallback<String>() {
      @Override
      public void onSuccess(String groupId) {
        presenter.display(presenter.getGroupModel());
        Info.display("操作成功", "新建组成功");
        TreeNodeChangeEvent event=new TreeNodeChangeEvent();
        event.setNeedSelectProviderKey(TreeKeyProviderTool.genGroupProviderKey(groupId));
        presenter.getPlatformContext().getPlatformBus().fireEvent(event);
      }
    });
  }
View Full Code Here

Examples of com.taobao.zeus.web.platform.client.module.jobmanager.event.TreeNodeChangeEvent

            if(sourceItem.isJob()){
              RPCS.getJobService().move(sourceItem.getId(), activeItem.getModel().getId(), new AbstractAsyncCallback<Void>() {
                public void onSuccess(Void result) {
                  source.removeSource();
                  targetThis.proxySuperDragDrop(event);
                  TreeNodeChangeEvent tnce=new TreeNodeChangeEvent();
                  tnce.setNeedSelectProviderKey(TreeKeyProviderTool.genJobProviderKey(sourceItem.getId()));
                  presenter.getPlatformContext().getPlatformBus().fireEvent(tnce);
                }
              });
            }else{
              RPCS.getGroupService().move(sourceItem.getId(), activeItem.getModel().getId(), new AbstractAsyncCallback<Void>() {
                public void onSuccess(Void result) {
                  source.removeSource();
                  targetThis.proxySuperDragDrop(event);
                  TreeNodeChangeEvent tnce=new TreeNodeChangeEvent();
                  tnce.setNeedSelectProviderKey(TreeKeyProviderTool.genGroupProviderKey(sourceItem.getId()));
                  presenter.getPlatformContext().getPlatformBus().fireEvent(tnce);
                }
              });
            }
          }
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeChangeEvent

           * the SBMLDocument because this is already done in the
           * method setThisAsParentSBMLObject, a method that is called
           * to link a new element to an existing SBML tree.
           */
          // Now we can notify all listeners about the change:
          TreeNodeChangeEvent changeEvent = new TreeNodeChangeEvent(this,
              propertyName, oldValue, newValue);
          for (TreeNodeChangeListener listener : listOfListeners) {
            listener.propertyChange(changeEvent);
          }
        }
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeChangeEvent

           * the SBMLDocument because this is already done in the
           * method setThisAsParentSBMLObject, a method that is called
           * to link a new element to an existing SBML tree.
           */
          // Now we can notify all listeners about the change:
          TreeNodeChangeEvent changeEvent = new TreeNodeChangeEvent(this,
              propertyName, oldValue, newValue);
          for (TreeNodeChangeListener listener : listOfListeners) {
            listener.propertyChange(changeEvent);
          }
        }
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeChangeEvent

           * the SBMLDocument because this is already done in the
           * method setThisAsParentSBMLObject, a method that is called
           * to link a new element to an existing SBML tree.
           */
          // Now we can notify all listeners about the change:
          TreeNodeChangeEvent changeEvent = new TreeNodeChangeEvent(this,
              propertyName, oldValue, newValue);
          for (TreeNodeChangeListener listener : listOfListeners) {
            listener.propertyChange(changeEvent);
          }
        }
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeChangeEvent

   * @see java.lang.Object#equals(java.lang.Object)
   */
  @Override
  public boolean equals(Object object) {
    if (object.getClass().equals(getClass())) {
      TreeNodeChangeEvent tnce = (TreeNodeChangeEvent) object;
      boolean equals = tnce.isSetSource() == isSetSource();
      if (equals && isSetSource()) {
        equals &= tnce.getSource().equals(getSource());
      }
      equals &= tnce.isSetOldValue() == isSetOldValue();
      if (equals && isSetOldValue()) {
        equals &= tnce.getOldValue().equals(getOldValue());
      }
      equals &= tnce.isSetNewValue() == isSetNewValue();
      if (equals && isSetNewValue()) {
        equals &= tnce.getNewValue().equals(getNewValue());
      }
      return equals;
    }
    return false;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.