Package org.gwt.mosaic.ui.client.layout

Examples of org.gwt.mosaic.ui.client.layout.BoxLayout


  private Button revBtn;
  private Button ffwBtn;

  public PagingPanel(final PagingCallback callback)
  {
    super(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
    setStyleName("bpm-paging-panel");

    this.callback = callback;

    ClickHandler clickHandler = new ClickHandler()
View Full Code Here


  private MosaicPanel resources = new MosaicPanel();

  public ResourcePanel()
  {
    super(new BoxLayout(BoxLayout.Orientation.VERTICAL));

  }
View Full Code Here

  {
    super("Deployment details");
    super.setStyleName("bpm-detail-panel");

    grid = new PropertyGrid(new String[] {"ID:", "Name:", "Processes:"});
    MosaicPanel propLayout = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
    propLayout.add(grid, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));


    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() {
                public void onResult(boolean doIt)
                {
                  if(doIt)
                  {
                    controller.handleEvent(
                        new Event(
                            ResumeDeploymentAction.ID,
                            getSelection().getId()
                        )
                    );
                  }
                }
              });
        }
        else
        {
          MessageBox.alert("Missing selection", "Please select a deployment");
        }
      }
    }
    );

    MosaicPanel btnLayout = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
    btnLayout.add(suspendBtn, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
    btnLayout.add(resumeBtn, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
    propLayout.add(btnLayout);
   
    // properties
View Full Code Here

   
    panel = new MosaicPanel();
    panel.setPadding(0);
    panel.setWidgetSpacing(5);
   
    instanceList = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
    instanceList.setPadding(0);
    instanceList.setWidgetSpacing(5);
   
    listbox = new org.gwt.mosaic.ui.client.ListBox<HistoryProcessInstanceRef>(new String[]{"Instance Id", "Correlation Key", "Status", "Start Time", "Finish Time"});
    listbox.setCellRenderer(new org.gwt.mosaic.ui.client.ListBox.CellRenderer<HistoryProcessInstanceRef>(){
View Full Code Here

          controller.addView(ID, this);
          controller.addAction(GetProcessInstanceEventsAction.ID, new GetProcessInstanceEventsAction());
        }

        super.setStyleName("bpm-detail-panel");
        super.setLayout(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));

        grid = new PropertyGrid(
                new String[] {"Process:", "Instance ID:", "State", "Start Date:", "Activity:"}
        );

        this.add(grid, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

        MosaicPanel buttonPanel = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL) );
       
        if(isRiftsawInstance) {
          diagramBtn = new Button("Execution Path",
                  new ClickHandler()
                  {
View Full Code Here

                layout, true
        );

        controller.handleEvent(new Event(GetProcessInstanceEventsAction.ID, inst.getId()));
        } else if(isjBPMInstance) {
          MosaicPanel layout = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
            layout.setStyleName("bpm-window-layout");
            layout.setPadding(5);

            Label header = new Label("Instance: "+inst.getId());
            header.setStyleName("bpm-label-header");
View Full Code Here

  private String selection = null;
  private TaskRef currentTask;

  public ParticipantPanel()
  {
    super(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
    setPadding(5);

    // particpants
    ScrollLayoutPanel treePanel = new ScrollLayoutPanel();
View Full Code Here

  public void initialize()
  {
    if(!initialized)
    {
      jobList = new MosaicPanel( new BoxLayout(BoxLayout.Orientation.VERTICAL));
      jobList.setPadding(0);
      jobList.setWidgetSpacing(0);

      // toolbar

      final MosaicPanel toolBox = new MosaicPanel();
      toolBox.setPadding(0);
      toolBox.setWidgetSpacing(0);
      toolBox.setLayout(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));

      // toolbar
      final ToolBar toolBar = new ToolBar();
      toolBar.add(
          new Button("Refresh", new ClickHandler() {
            public void onClick(ClickEvent clickEvent)
            {             
              // force loading
              controller.handleEvent(
                  new Event(UpdateJobsAction.ID, null)
              );
            }
          }
          )
      );

      toolBar.add(
          new Button("Execute", new ClickHandler() {

            public void onClick(ClickEvent clickEvent)
            {             
              JobRef selection = getSelection();
              if(null==selection)
              {
                MessageBox.alert("Missing selection", "Please select a job!");
              }
              else
              {
                controller.handleEvent(
                    new Event(ExecuteJobAction.ID, selection.getId())
                );
              }
            }
          }
          )
      );

      toolBox.add(toolBar, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

      // filter
      MosaicPanel filterPanel = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
      filterPanel.setStyleName("mosaic-ToolBar");
      final com.google.gwt.user.client.ui.ListBox dropBox = new com.google.gwt.user.client.ui.ListBox(false);
      dropBox.setStyleName("bpm-operation-ui");
      dropBox.addItem("All");
      dropBox.addItem("Timers");
View Full Code Here

  private SearchWindow parent;

  public SearchDefinitionView(ApplicationContext appContext, SearchDelegate delegate)
  {
    super(new BoxLayout(BoxLayout.Orientation.VERTICAL));
   
    this.appContext = appContext;
    this.delegate = delegate;
    this.setPadding(5);
View Full Code Here

   
  }

  public void initialize(final List<ProcessDefinitionRef> processDefinitions) {

    final LayoutPanel panel = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
      panel.getElement().setId("process-history-search-view");
    panel.setPadding(0);
    panel.setWidgetSpacing(5);

    final ToolBar toolbar = new ToolBar();
    panel.add(toolbar, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
   
    toolbar.add(new Button("Search", new ClickHandler() {

      @Override
      public void onClick(ClickEvent clickEvent) {

                if (definitionList.getItemCount() < 1) {
                    return;
                }

        String proDef = definitionList.getValue(definitionList.getSelectedIndex());

                String definitionId = null;

                for (ProcessDefinitionRef ref : processDefinitions) {
                    if (proDef.equals(ref.getName())) {
                        definitionId = ref.getId();
                    }
                }

        String theStatus = processStatusList.getValue(processStatusList.getSelectedIndex());
        Date theDate = startTime.getValue();
        if (theDate == null) {
          theDate = new Date(103,1,1);
        }
        Date edate = endTime.getValue();
        if (edate == null) {
          edate = new Date();
        }
        String ckey = correlationKey.getValue();
       
        ProcessSearchEvent event = new ProcessSearchEvent();
        event.setDefinitionKey(definitionId);
        event.setStatus(theStatus);
        event.setStartTime(theDate.getTime());
        event.setEndTime(edate.getTime());
        event.setPage(page);
        event.setKey(ckey);
       
        controller.handleEvent(new Event(LoadProcessHistoryAction.ID, event));
      }
     
    }) );
   
    final MosaicPanel formPanel = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
    panel.add(formPanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

    BoxLayoutData bld1 = new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL);
        bld1.setPreferredWidth("130px");
       
        final MosaicPanel processDefBox = new MosaicPanel(new BoxLayout());
    processDefBox.add(new Label("Process Definition: "), bld1);
   
    definitionList = new ListBox();
    for (ProcessDefinitionRef ref : processDefinitions) {
      definitionList.addItem(ref.getName());
    }
    processDefBox.add(definitionList);
       
        formPanel.add(processDefBox);      
        formPanel.add(createProcessStatusListBox(bld1));   
        formPanel.add(createCorrelationKeyTextBox(bld1));   
        formPanel.add(createStartTimeDateBox(bld1));       
        formPanel.add(createEndTimeDateBox(bld1));

        prevButton=new Button("<< Previous", new ClickHandler() {

      @Override
      public void onClick(ClickEvent clickEvent) {

                if (definitionList.getItemCount() < 1) {
                    return;
                }

        String proDef = definitionList.getValue(definitionList.getSelectedIndex());

                String definitionId = null;

                for (ProcessDefinitionRef ref : processDefinitions) {
                    if (proDef.equals(ref.getName())) {
                        definitionId = ref.getId();
                    }
                }

        String theStatus = processStatusList.getValue(processStatusList.getSelectedIndex());
        Date theDate = startTime.getValue();
        if (theDate == null) {
          theDate = new Date(103,1,1);
        }
        Date edate = endTime.getValue();
        if (edate == null) {
          edate = new Date();
        }
        String ckey = correlationKey.getValue();
       
        ProcessSearchEvent event = new ProcessSearchEvent();
        event.setDefinitionKey(definitionId);
        event.setStatus(theStatus);
        event.setStartTime(theDate.getTime());
        event.setEndTime(edate.getTime());
       
        page--;
       
        if (page == 0) {
          prevButton.setEnabled(false);
        }
       
        pageLabel.setText(""+(page+1));
        event.setPage(page);
        event.setKey(ckey);
       
        controller.handleEvent(new Event(LoadProcessHistoryAction.ID, event));
      }
     
    });
        prevButton.setEnabled(false);

        nextButton=new Button("Next >>", new ClickHandler() {

      @Override
      public void onClick(ClickEvent clickEvent) {

                if (definitionList.getItemCount() < 1) {
                    return;
                }

        String proDef = definitionList.getValue(definitionList.getSelectedIndex());

                String definitionId = null;

                for (ProcessDefinitionRef ref : processDefinitions) {
                    if (proDef.equals(ref.getName())) {
                        definitionId = ref.getId();
                    }
                }

        String theStatus = processStatusList.getValue(processStatusList.getSelectedIndex());
        Date theDate = startTime.getValue();
        if (theDate == null) {
          theDate = new Date(103,1,1);
        }
        Date edate = endTime.getValue();
        if (edate == null) {
          edate = new Date();
        }
        String ckey = correlationKey.getValue();
       
        ProcessSearchEvent event = new ProcessSearchEvent();
        event.setDefinitionKey(definitionId);
        event.setStatus(theStatus);
        event.setStartTime(theDate.getTime());
        event.setEndTime(edate.getTime());
       
        page++;
       
        pageLabel.setText(""+(page+1));
       
        event.setPage(page);
        event.setKey(ckey);
       
        controller.handleEvent(new Event(LoadProcessHistoryAction.ID, event));
      }
     
    });
        nextButton.setEnabled(false);
       
    MosaicPanel buttonBox = new MosaicPanel(new BoxLayout());
    buttonBox.add(prevButton);
    buttonBox.add(nextButton);
   
    pageLabel = new Label("1");
   
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.ui.client.layout.BoxLayout

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.