Examples of BoxLayoutData


Examples of com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData

      for (int i = 0, len = columnModel.getColumnCount(); i < len; i++) {
        ColumnConfig<M, ?> c = columnModel.getColumn(i);

        final Widget w = doStartEditing(c, value);
        if (w != null) {
          BoxLayoutData ld = new BoxLayoutData();
          ld.setMargins(new Margins(1, 2, 2, 2 + adj));
          w.setLayoutData(ld);
          con.add(w);
          adj = 0;
        }
      }
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData

   * Creates a new fill item.
   */
  public FillToolItem() {
    setElement(Document.get().createDivElement());
   
    BoxLayoutData data = new BoxLayoutData();
    data.setFlex(1.0);
    setLayoutData(data);
  }
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData

   * Creates a new fill item.
   */
  public FillToolItem() {
    setElement(DOM.createDiv());
   
    BoxLayoutData data = new BoxLayoutData();
    data.setFlex(1.0);
    setLayoutData(data);
  }
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData

      for (int i = 0, len = columnModel.getColumnCount(); i < len; i++) {
        ColumnConfig<M, ?> c = columnModel.getColumn(i);

        final Widget w = doStartEditing(c, value);
        if (w != null) {
          BoxLayoutData ld = new BoxLayoutData();
          ld.setMargins(new Margins(1, 2, 2, 2 + adj));
          w.setLayoutData(ld);
          con.add(w);
          adj = 0;
        }
      }
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData

  public ReportViewImpl(ReportPresenter presenter){
    this.presenter=presenter;
   
   
    allBtnContainer.setVBoxLayoutAlign(VBoxLayoutAlign.STRETCH);
    BoxLayoutData vBoxData = new BoxLayoutData(new Margins(5, 5, 5, 5));
    ToggleGroup tg=new ToggleGroup();
    ToggleButton runningTrend=new ToggleButton("每日失败任务趋势");
    runningTrend.setAllowDepress(false);
    runningTrend.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      private RunningJobTrend trend=new RunningJobTrend();
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData

  public void setCenter(Widget widget){
    container.setCenterWidget(widget,new MarginData(3));
  }
 
  public void addButton(CellButtonBase<?> btn){
    BoxLayoutData data=new BoxLayoutData(new Margins(5));
    buttonArea.add(btn,data);
  }
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData

          getPlatformContext().getPlatformBus().fireEvent(new PlatformPlaceChangeEvent(app.getPlace(),true));
        }
      });
      shortcuts.add(app.getShortcut());
     
      shortcutBar.add(app.getShortcut(),new BoxLayoutData(new Margins(2,0,5,0)));
    }
  }
View Full Code Here

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

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

                )
        );

       

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