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

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


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

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


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

    propLayout.add(suspendBtn);
    propLayout.add(resumeBtn);
   
    // properties
    final DeckLayoutPanel deck = new DeckLayoutPanel();
    deck.add(propLayout);

    // resource info
    ScrollLayoutPanel scrollPanel = new ScrollLayoutPanel();
    resourcePanel = new ResourcePanel();
    scrollPanel.add(resourcePanel);
    deck.add(scrollPanel);

    // selection
    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("Properties");
    dropBox.addItem("Resources");
    dropBox.addChangeListener(new ChangeListener() {
      public void onChange(Widget sender) {
        deck.showWidget(dropBox.getSelectedIndex());
        deck.layout();
      }
    });

    this.getHeader().add(dropBox, Caption.CaptionRegion.RIGHT);
    this.add(deck, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

    deck.showWidget(dropBox.getSelectedIndex());

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

  }
View Full Code Here


        });

        deck.add(participantPanel);

        this.getHeader().add(dropBox, Caption.CaptionRegion.RIGHT);
        this.add(deck, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

        deck.showWidget(dropBox.getSelectedIndex());
      }
      else
      {
View Full Code Here

    // particpants
    ScrollLayoutPanel treePanel = new ScrollLayoutPanel();
    tree = new Tree();
    treePanel.add(tree);
    this.add(treePanel, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

    tree.addTreeListener(
        new TreeListener()
        {
          public void onTreeItemSelected(TreeItem treeItem)
View Full Code Here

    final LayoutPanel layoutPanel = new LayoutPanel(new BoxLayout(
        Orientation.VERTICAL));
    layoutPanel.setWidgetSpacing(0);
    initWidget(layoutPanel);

    layoutPanel.add(this.getMonthSelector(), new BoxLayoutData(
        FillStyle.HORIZONTAL));

    layoutPanel.add(this.getView(), new BoxLayoutData(FillStyle.BOTH));
  }
View Full Code Here

    super();

    final LayoutPanel layoutPanel = getLayoutPanel();
    layoutPanel.add(scrollPanel);

    scrollPanel.add(columnView, new BoxLayoutData(FillStyle.VERTICAL));
    columnView.add(resizeHotSpot, new ColumnLayoutData("20em"));

    // TODO move to CSS {
    Style style = scrollPanel.getElement().getStyle();
    style.setPaddingTop(0, Unit.PX);
View Full Code Here

    layoutPanel.setWidgetSpacing(1);
   
    this.datePicker = datePicker;
    this.timePicker = timePicker;
   
    layoutPanel.add(datePicker, new BoxLayoutData(FillStyle.BOTH));
    layoutPanel.add(new WidgetWrapper(timePicker), new BoxLayoutData(FillStyle.HORIZONTAL));
   
    timePicker.addValueChangeHandler(timePickerChangeHandler);
    datePicker.addValueChangeHandler(datePickerChangeHandler);
   
    setStyleName(DEFAULT_STYLENAME);
View Full Code Here

    final LayoutPanel layoutPanel = getLayoutPanel();
    layoutPanel.setLayout(new BoxLayout());
    layoutPanel.setPadding(0);
    layoutPanel.setWidgetSpacing(0);

    layoutPanel.add(caption, new BoxLayoutData(FillStyle.BOTH));

    caption.setStyleName(DEFAULT_STYLENAME + "-text");

    if (asHTML) {
      setHTML(text);
View Full Code Here

      if (leftIconBox == null) {
        leftIconBox = new HorizontalPanel();
        leftIconBox.setStyleName(DEFAULT_STYLENAME + "-iconBoxLeft");
        leftIconBox.setVerticalAlignment(HorizontalPanel.ALIGN_MIDDLE);
        getLayoutPanel().insert(leftIconBox,
            new BoxLayoutData(FillStyle.VERTICAL), 0);
      }
      leftIconBox.add(w);
    } else {
      if (rightIconBox == null) {
        rightIconBox = new HorizontalPanel();
        rightIconBox.setStyleName(DEFAULT_STYLENAME + "-iconBoxRight");
        rightIconBox.setVerticalAlignment(HorizontalPanel.ALIGN_MIDDLE);
        getLayoutPanel().add(rightIconBox,
            new BoxLayoutData(FillStyle.VERTICAL));
      }
      if (rightIconBox.getWidgetCount() > 0) {
        rightIconBox.insert(w, 0);
      } else {
        rightIconBox.add(w);
View Full Code Here

    final LayoutPanel layoutPanel = getLayoutPanel();
    layoutPanel.setLayout(new BoxLayout(Orientation.VERTICAL));
    layoutPanel.setWidgetSpacing(0);

    caption = new Caption(text, asHTML);
    layoutPanel.add(caption, new BoxLayoutData(FillStyle.HORIZONTAL));

    body = new LayoutPanel();
    body.addStyleName("Body");
    layoutPanel.add(body, new BoxLayoutData(FillStyle.BOTH));

    setStyleName(DEFAULT_STYLENAME);
  }
View Full Code Here

    if (this.footer != null) {
      getLayoutPanel().remove(this.footer);
    }
    this.footer = footer;
    if (this.footer != null) {
      getLayoutPanel().add(this.footer, new BoxLayoutData(FillStyle.HORIZONTAL));
    }
  }
View Full Code Here

TOP

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

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.