Package org.jboss.bpm.console.client.model

Examples of org.jboss.bpm.console.client.model.DeploymentRef


    suspendBtn =  new Button("Retire", new ClickHandler() {

      public void onClick(ClickEvent clickEvent)
      {

        DeploymentRef deploymentRef = getSelection();
        if(deploymentRef!=null)
        {
          MessageBox.confirm("Retire deployment",
              "Do you want to retire this deployment? Any associated process will be suspended.",
              new MessageBox.ConfirmationCallback() {
                public void onResult(boolean doIt)
                {
                  if(doIt)
                  {
                    controller.handleEvent(
                        new Event(
                            SuspendDeploymentAction.ID,
                            getSelection().getId()
                        )
                    );
                  }
                }
              });
        }
        else
        {
          MessageBox.alert("Missing selection", "Please select a deployment");
        }
      }
    }
    );

    resumeBtn =  new Button("Activate", new ClickHandler() {
      public void onClick(ClickEvent clickEvent)
      {       
        DeploymentRef deploymentRef = getSelection();
        if(deploymentRef!=null)
        {
          MessageBox.confirm("Activate deployment",
              "Do you want to resume this deployment?",
              new MessageBox.ConfirmationCallback() {
View Full Code Here


{
  public final static String ID = UpdateDeploymentDetailAction.class.getName();

  public void execute(Controller controller, Object object)
  {
    DeploymentRef ref = object!=null ? (DeploymentRef)object : null;
    DeploymentDetailView view = (DeploymentDetailView)controller.getView(DeploymentDetailView.ID);

    if(null==ref)
    {
      // clear view
View Full Code Here

{
  public final static String ID = UpdateDeploymentDetailAction.class.getName();

  public void execute(Controller controller, Object object)
  {
    DeploymentRef ref = object!=null ? (DeploymentRef)object : null;
    DeploymentDetailView view = (DeploymentDetailView)controller.getView(DeploymentDetailView.ID);

    if(null==ref)
    {
      // clear view
View Full Code Here

      public void onChange(Widget widget)
      {
        int index = listBox.getSelectedIndex();
        if(index!=-1)
        {
          DeploymentRef item = listBox.getItem(index);

          controller.handleEvent(
              new Event(UpdateDeploymentDetailAction.ID, item)
          );
        }
View Full Code Here

      toolBar.add(
          new ToolButton("Delete", new ClickListener() {
            public void onClick(Widget sender) {

              DeploymentRef deploymentRef = getSelection();
              if(deploymentRef!=null)
              {
                MessageBox.confirm("Delete deployment",
                    "Do you want to delete this deployment? Any related data will be removed.",
                    new MessageBox.ConfirmationCallback() {
View Full Code Here

    }
  }

  public DeploymentRef getSelection()
  {
    DeploymentRef selection = null;
    if(isInitialized() && listBox.getSelectedIndex()!=-1)
      selection = listBox.getItem( listBox.getSelectedIndex());
    return selection;
  }
View Full Code Here

    final DefaultListModel<DeploymentRef> model =
        (DefaultListModel<DeploymentRef>) listBox.getModel();

    for(int i=0; i<model.size(); i++)
    {
      DeploymentRef ref = model.get(i);
      if(ref.getId().equals(deploymentId))
      {
        listBox.setSelectedIndex(i);
        break;
      }
    }
View Full Code Here


    suspendBtn =  new ToolButton("Suspend", new ClickListener() {
      public void onClick(Widget sender) {

        DeploymentRef deploymentRef = getSelection();
        if(deploymentRef!=null)
        {
          MessageBox.confirm("Suspend deployment",
              "Do you want to suspend this deployment? Any associated process will be suspended aswell.",
              new MessageBox.ConfirmationCallback() {
                public void onResult(boolean doIt)
                {
                  if(doIt)
                  {
                    controller.handleEvent(
                        new Event(
                            SuspendDeploymentAction.ID,
                            getSelection().getId()
                        )
                    );
                  }
                }
              });
        }
        else
        {
          MessageBox.alert("Missing selection", "Please select a deployment");
        }
      }
    }
    );
    resumeBtn =  new ToolButton("Resume", new ClickListener() {
      public void onClick(Widget sender) {

        DeploymentRef deploymentRef = getSelection();
        if(deploymentRef!=null)
        {
          MessageBox.confirm("Resume deployment",
              "Do you want to resume this deployment?",
              new MessageBox.ConfirmationCallback() {
View Full Code Here

TOP

Related Classes of org.jboss.bpm.console.client.model.DeploymentRef

Copyright © 2018 www.massapicom. 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.