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

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


    LayoutPanel toolbar = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
    final ListBox listBox = new ListBox();
    for (String s : sourceNames)
      listBox.addItem(s);
    toolbar.add(listBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
    toolbar.add(new Button("View", new ClickHandler() {
      public void onClick(ClickEvent clickEvent) {
        requestSource(listBox.getItemText(listBox.getSelectedIndex()));
      }
    }));
View Full Code Here


    });
  }

  private void createSourcePanel(LayoutPanel panel) {
    formatted = new SourcePanel();
    panel.add(formatted, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
  }
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

    this.name = name;

    sinkEvents(Event.MOUSEEVENTS);

    HTML html = new HTML("  " + AbstractImagePrototype.create(resource).getHTML() + " " + createButtonMarkup());
    this.add(html, new BoxLayoutData(BoxLayoutData.FillStyle.VERTICAL));
    this.setStylePrimaryName(CSS_NAME);

  }
View Full Code Here

    LayoutPanel toolbar = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
    final ListBox listBox = new ListBox();
    for(String s : sourceNames)
      listBox.addItem(s);
    toolbar.add(listBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
    toolbar.add(new Button("View", new ClickHandler()
    {
      public void onClick(ClickEvent clickEvent)
      {
        requestSource(listBox.getItemText(listBox.getSelectedIndex()));
View Full Code Here

  }

  private void createSourcePanel(LayoutPanel panel)
  {
    formatted = new SourcePanel();
    panel.add(formatted, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
  }
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

            // 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

                )
        );

        Label header = new Label("Available tokens to signal: ");
        header.setStyleName("bpm-label-header");
        layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

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

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

        listBoxTokens = new ListBox<TokenReference>(new String[] { "Id", "Name" });


        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.getId());
                        break;
                    case 1:
                        listBox.setText(row, column, item.getName() == null ? item.getCurrentNodeName() : item.getName());
                        break;
                    default:
                        throw new RuntimeException("Unexpected column size");
                }
            }
        });

        listBoxTokens.addRowSelectionHandler(
                new RowSelectionHandler()
                {
                    public void onRowSelection(RowSelectionEvent rowSelectionEvent)
                    {
                        int index = listBoxTokens.getSelectedIndex();
                        if(index!=-1)
                        {
                            TokenReference item = listBoxTokens.getItem(index);
                            renderAvailableSignals(item);

                        }
                    }
                }
        );

        renderSignalListBox(-1);
        layout.add(listBoxTokens, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

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

        listBoxTokenSignals = new ListBox<String>(new String[] { "Signal name" });


        listBoxTokenSignals.setCellRenderer(new ListBox.CellRenderer<String>() {

            public void renderCell(ListBox<String> listBox, int row, int column, String item) {
                switch (column) {
                    case 0:
                        listBox.setText(row, column, item);
                        break;

                    default:
                        throw new RuntimeException("Unexpected column size");
                }
            }
        });



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

        signalWindowPanel = new WidgetWindowPanel(
                "Signal proces from wait state",
                layout, true
        );
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.