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

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


            loadInstances();
          }
        }
    );

    leftPanel.add(processDefinitions, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

    // -----
    LayoutPanel rightPanel = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));

    processInstances = new ListBox<String>(new String[] {"processInstanceID"});
    processInstances.setMinimumColumnWidth(0, 190);
    processInstances.setCellRenderer(
        new ListBox.CellRenderer<String>()
        {
          public void renderCell(ListBox<String> stringListBox, int row, int column, String item)
          {
            switch (column)
            {
              case 0:               
                processInstances.setText(row, column, item);
                break;
              default:
                throw new IllegalArgumentException("unknown column");
            }
          }
        }
    );
    processInstances.addRowSelectionHandler(
        new RowSelectionHandler()
        {
          public void onRowSelection(RowSelectionEvent rowSelectionEvent)
          {
            loadActivities();
          }
        }
    );

    activities = new ListBox<String>(new String[] {"activityDefinitionID"});
       activities.setMinimumColumnWidth(0, 190);
       activities.setCellRenderer(
           new ListBox.CellRenderer<String>()
           {
             public void renderCell(ListBox<String> stringListBox, int row, int column, String item)
             {
               switch (column)
               {
                 case 0:
                   activities.setText(row, column, item);
                   break;
                 default:
                   throw new IllegalArgumentException("unknown column");
               }
             }
           }
       );


    rightPanel.add(processInstances, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
    rightPanel.add(activities, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
   
    // -----
    wrapper.add(leftPanel);
    wrapper.add(rightPanel);
View Full Code Here


            // terminate works on any BPM Engine
            toolBar.add(terminateBtn);
            terminateBtn.setEnabled(false);

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


            instanceList.add(toolBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
            instanceList.add(listBox, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

            /*pagingPanel = new PagingPanel(
              new PagingCallback()
              {
                public void rev()
View Full Code Here

                )
        );

       

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

        layout.add(toolBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
       
        Label header = new Label("Known active nodes to signal: ");
        header.setStyleName("bpm-label-header");
        layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

        listBoxTokens = new ListBox<TokenReference>(new String[] { "Node name", "Signal ref" });

        listBoxTokens.setCellRenderer(new ListBox.CellRenderer<TokenReference>() {

            public void renderCell(ListBox<TokenReference> listBox, int row, int column, TokenReference item) {
                switch (column) {
                    case 0:
                        listBox.setText(row, column, item.getCurrentNodeName());
                        break;
                    case 1:
                        listBox.setText(row, column, item.getName());
                        break;
                    default:
                        throw new RuntimeException("Unexpected column size");
                }
            }
        });


        renderSignalListBox(-1);
        layout.add(listBoxTokens, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
       
        Label headerSignalRef = new Label("Signal ref");
        headerSignalRef.setStyleName("bpm-label-header");
        layout.add(headerSignalRef, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

        signalRef = new TextBox();
        signalRef.addFocusHandler(new FocusHandler() {
     
      @Override
      public void onFocus(FocusEvent event) {
        if (listBox.getSelectedIndex() != -1) {
          listBoxTokens.setItemSelected(listBox.getSelectedIndex(), false);
        }
      }
    });

        layout.add(signalRef, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

        Label headerSignals = new Label("Event data");
        headerSignals.setStyleName("bpm-label-header");
        layout.add(headerSignals, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

        eventData = new TextBox();

        layout.add(eventData, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

        signalWindowPanel = new WidgetWindowPanel(
                "Signal process",
                layout, false
        );
View Full Code Here

   
    stack = new StackLayoutPanel();
    stack.setStyleName("");
    stack.setAnimationEnabled(false);

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

   
    infoPanel.add(img);
    infoPanel.add(username);
    infoPanel.add(btn);

    this.add(logoPanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
    this.add(infoPanel, new BoxLayoutData(177, 50));
  }
View Full Code Here

    this.toolSetId = id;

    if (w != null)
    {
      w.getElement().setId(toolSetId);
      this.add(w, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
    }

    // tool links
    for (Tool t : toolSet.getAllProvidedTools()) {
      this.addLink(t.getName(), t);
View Full Code Here

                .noErrorHandling()
                .sendNowWith(ErraiBus.get());
          }
        }
    );
    this.add(button, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
  }
View Full Code Here

    this.setWidgetSpacing(5);

    this.stack = new StackLayoutPanel();
    //stack.showStack(0); // todo: loading event
    this.add(stack, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH, true));
  }
View Full Code Here

        HTML html = new HTML("Version: " + Version.VERSION);
        html.setStyleName("bpm-login-info");

        MosaicPanel btnPanel = new MosaicPanel(new BoxLayout());
        btnPanel.add(html, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
        btnPanel.add(submit);

        layoutPanel.add(messagePanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
        layoutPanel.add(form, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
        layoutPanel.add(btnPanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

    }
View Full Code Here

        usernameInput = new TextBox();
        passwordInput = new PasswordTextBox();


        BoxLayoutData bld1 = new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL);
        bld1.setPreferredWidth("70px");

        box1.add( new Label("Username:"), bld1);
        box1.add(usernameInput);

        box2.add(new Label("Password:"), bld1);
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.