Package com.sencha.gxt.core.client.util

Examples of com.sencha.gxt.core.client.util.Margins


        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


        Widget w = rowEditor.getFieldContainer().getWidget(j++);
        int width = c.getWidth();

        Object layoutData = w.getLayoutData();
        if (layoutData instanceof MarginData) {
          Margins m = ((MarginData) layoutData).getMargins();
          if (m != null) {
            width -= m.getLeft();
            width -= m.getRight();
          }
        }
        if (w instanceof Field<?>) {

          ((Field<?>) w).setWidth(width);
View Full Code Here

  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

  @Override
  public Widget asWidget() {
    if(widget==null){
      final BorderLayoutContainer border = new BorderLayoutContainer();
      BorderLayoutData west = new BorderLayoutData();
      west.setMargins(new Margins(3));
      west.setSplit(true);
      west.setSize(300);
      west.setCollapsible(true);
      west.setCollapseMini(true);
      ContentPanel sc=new ContentPanel();
View Full Code Here

        }
      }
    });
   
    container=new VerticalLayoutContainer();
    container.add(toolBarContainer,new VerticalLayoutData(1, 35, new Margins(0,0,3,0)));
    container.add(tabPanel,new VerticalLayoutData(1, 1d, new Margins(0)));
  }
View Full Code Here

      }
     
    };
    filter.setEmptyText("id 或者 名称 匹配搜索,使用空格匹配多个,使用单引号(如'123')进行精确匹配");
    filter.bind(tree.getStore());
    getLayoutContainer().add(filter,new VerticalLayoutContainer.VerticalLayoutData(1, 30, new Margins(4)));
    getLayoutContainer().add(tree,new VerticalLayoutContainer.VerticalLayoutData(1, 1d, new Margins(4)));
   
    addButton(new TextButton("确定", new SelectHandler() {
      @Override
      public void onSelect(SelectEvent event) {
        if(handler!=null){
View Full Code Here

          super.applyFilters(store);
        }
      };
      filter.setEmptyText("id 或者 名称 匹配搜索,使用空格可匹配多个");
      filter.bind(tree.getStore());
      getContainer().add(filter,new VerticalLayoutContainer.VerticalLayoutData(1, 30, new Margins(4)));
      getContainer().add(tree,new VerticalLayoutContainer.VerticalLayoutData(1, 1d, new Margins(4)));
     
      //拖拽
      if(!isMy){
        JobDragSource source=new JobDragSource(tree);
        JobDropTarget target=new JobDropTarget(tree, source);
View Full Code Here

    status.setText("已保存");
    status.setWidth(150);
    bar.add(status);

    codePanel.add(getCodeMirror(), new VerticalLayoutData(1, 1,
        new Margins(5)));
    bar.setLayoutData(new VerticalLayoutData(1, -1));
    codePanel.add(bar);
    setCenterWidget(codePanel, new MarginData(0, 0, 5, 0));

    if (model.getName().endsWith(".sh")
View Full Code Here

   
   
    VerticalLayoutContainer commonContainer=new VerticalLayoutContainer();
    commonContainer.setScrollMode(ScrollMode.AUTOY);
    commonContainer.add(getCommonDocFilter(),
        new VerticalLayoutData(1, 30, new Margins(4, 20, 4, 4)));
    commonContainer.add(getCommonTreeGrid(), new VerticalLayoutData(1, 1));
    commonDoc.add(commonContainer);
   
    container.setActiveWidget(myDoc);
   
View Full Code Here

    container = uiBinder.createAndBindUi(this);

    commonTableContainer.add(getCommonGrid(), new VerticalLayoutData(1, 1));
    commonTableContainer.add(getToolbar(), new VerticalLayoutData(1, 30));
    commonTableContainer.add(getTableInfoPanel(), new VerticalLayoutData(1,
        220, new Margins(1)));
  }
View Full Code Here

TOP

Related Classes of com.sencha.gxt.core.client.util.Margins

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.