Examples of BoxLayoutData


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

    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

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

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

  }

  private void createSourcePanel(LayoutPanel panel)
  {
    formatted = new SourcePanel();
    panel.add(formatted, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
  }
View Full Code Here

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

        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

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

        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

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

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

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

                )
        );

        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

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

      toolBar.add(
          new Button("Refresh", clickHandler
          )
      );

      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("Active");
      dropBox.addItem("Retired");

      dropBox.addChangeHandler(new ChangeHandler() {

        public void onChange(ChangeEvent changeEvent)
        {         
          switch (dropBox.getSelectedIndex())
          {
            case 0:
              currentFilter = FILTER_NONE;
              break;
            case 1:
              currentFilter = FILTER_ACTIVE;
              break;
            case 2:
              currentFilter = FILTER_SUSPENDED;
              break;
            default:
              throw new IllegalArgumentException("No such index");
          }

          renderFiltered();
        }
      });
      filterPanel.add(dropBox);

      toolBox.add(filterPanel, new BoxLayoutData(BoxLayoutData.FillStyle.VERTICAL));

      definitionList.add(toolBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
      definitionList.add(listBox, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
      pagingPanel = new PagingPanel(
          new PagingCallback()
          {
            public void rev()
            {
              renderFiltered();
            }

            public void ffw()
            {
              renderFiltered();
            }
          }
      );
      definitionList.add(pagingPanel,new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

      // layout
      //MosaicPanel layout = new MosaicPanel(new BorderLayout());
      //layout.add(definitionList, new BorderLayoutData(BorderLayout.Region.CENTER));
View Full Code Here

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

      toolBar.add(
          new Button("Refresh", clickHandler
          )
      );

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

      definitionList.add(toolBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
   
      definitionList.add(listBox, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
      pagingPanel = new PagingPanel(
          new PagingCallback()
          {
            public void rev()
            {
              renderFiltered();
            }

            public void ffw()
            {
              renderFiltered();
            }
          }
      );
      definitionList.add(pagingPanel,new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

     
      panel.add(definitionList);

      // deployments model listener
View Full Code Here

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

  public void provideWidget(ProvisioningCallback callback)
  {
    panel = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));

    this.appContext = Registry.get(ApplicationContext.class);
    panel.add(new HeaderLabel("User Preferences"), new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

    MosaicPanel layout = new MosaicPanel(new GridLayout(2,1));
    layout.add(
        new HTML("<b>Default Tool</b><br>" +
            "Select the tool that should be loaded upon login.")
    );

    final List<ToolSet> toolsets =
        org.jboss.errai.workspaces.client.Workspace.getInstance().getToolsets();
    final ListBox multiBox = new ListBox();
    multiBox.setVisibleItemCount(5);
    layout.add(multiBox);

    // init
    final Preferences prefs = GWT.create(Preferences.class);
    String prefEditor = prefs.get(Preferences.DEFAULT_TOOL);
    for(ToolSet ts : toolsets)
    {
      multiBox.addItem(ts.getToolSetName());
      if(ts.getToolSetName().equals(prefEditor))
        multiBox.setItemSelected(multiBox.getItemCount()-1, true);
    }

    multiBox.addClickHandler(
        new ClickHandler()
        {
          public void onClick(ClickEvent clickEvent)
          {
            String title = multiBox.getItemText(multiBox.getSelectedIndex());
            for(ToolSet ts: toolsets)
            {
              if(ts.getToolSetName().equals(title))
              {
                prefs.set(Preferences.DEFAULT_TOOL, ts.getToolSetName());
              }
            }
          }
        }
    );

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

    callback.onSuccess(panel);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.