Package com.sencha.gxt.widget.core.client.button

Examples of com.sencha.gxt.widget.core.client.button.TextButton


    centerContainer.add(getScriptFieldSet(), new MarginData(3));
    centerContainer.add(getResourceField(), new MarginData(3));
    centerContainer.setScrollMode(ScrollMode.AUTO);
    setCenter(centerContainer);

    addButton(new TextButton("返回", new SelectHandler() {
      @Override
      public void onSelect(final SelectEvent event) {
        presenter.display(presenter.getJobModel());
      }
    }));
View Full Code Here


    p.add(new FieldLabel(name, "组名称(*)"), new VerticalLayoutData(1, -1));
    p.add(new FieldLabel(radios,"组类型(*)"), new VerticalLayoutData(1, -1));

    add(panel,new MarginData(5));

    addButton(new TextButton("确定", new SelectHandler() {
      public void onSelect(SelectEvent event) {
        if (name.getValue()==null || name.getValue().trim().equals("")
            || group.getValue() == null) {
          AlertMessageBox alert=new AlertMessageBox("警告", "必填项不能为空");
          alert.show();
        }else{
          submit();
        }
      }
    }));
    addButton(new TextButton("取消", new SelectHandler() {
      public void onSelect(SelectEvent event) {
        NewGroupWindow.this.hide();
      }
    }));
  }
View Full Code Here

    three.add(resources);
    centerContainer.add(three,new MarginData(5));
   
    setCenter(centerContainer);
   
    addButton(new TextButton("返回", new SelectHandler() {
      public void onSelect(SelectEvent event) {
        presenter.display(presenter.getGroupModel());
      }
    }));
    addButton(upload);
View Full Code Here

    p.add(new FieldLabel(name, "组名称(*)"), new VerticalLayoutData(-18, -1));
    p.add(new FieldLabel(radios,"组类型(*)"), new VerticalLayoutData(-18, -1));
   
    setCenter(panel);

    addButton(new TextButton("返回", new SelectHandler() {
      public void onSelect(SelectEvent event) {
        CardAddGroup.this.presenter.display(CardAddGroup.this.presenter.getGroupModel());
      }
    }));
    addButton(new TextButton("确定", new SelectHandler() {
     
      @Override
      public void onSelect(SelectEvent event) {
        if (name.getValue()==null || name.getValue().trim().equals("")
            || group.getValue() == null) {
View Full Code Here

    con.add(grid, new VerticalLayoutData(1, 1));
    con.add(toolBar, new VerticalLayoutData(1, 30));

    setCenter(con);

    addButton(new TextButton("返回", new SelectHandler() {
      public void onSelect(SelectEvent event) {
        presenter.display(presenter.getJobModel());
      }
    }));

    addButton(new TextButton("刷新", new SelectHandler() {
      public void onSelect(SelectEvent event) {
        refresh(presenter.getJobModel());
      }
    }));
  }
View Full Code Here

  private SpaceTree dependerST;
 
  public CardDepGraph(JobPresenter p){
    this.presenter=p;
   
    addButton(new TextButton("返回",new SelectHandler() {
      public void onSelect(SelectEvent event) {
        presenter.display(presenter.getJobModel());
      }
    }));
   
View Full Code Here

      }
    });
   
    setCenter(grid);
   
    addButton(new TextButton("返回", new SelectHandler() {
      public void onSelect(SelectEvent event) {
        presenter.display(presenter.getGroupModel());
      }
    }));
   
    addButton(new TextButton("刷新",new SelectHandler() {
      public void onSelect(SelectEvent event) {
        refresh(presenter.getGroupModel());
      }
    }));
  }
View Full Code Here

      con.add(grid, new VerticalLayoutData(1, 1));
      con.add(toolBar, new VerticalLayoutData(1, 30));

    setCenter(con);
   
    addButton(new TextButton("返回",new SelectHandler() {
      public void onSelect(SelectEvent event) {
        presenter.display(presenter.getGroupModel());
      }
    }));
   
    addButton(new TextButton("自动任务",new SelectHandler() {
      public void onSelect(SelectEvent event) {
        presenter.displayRunning();
      }
    }));
   
    addButton(new TextButton("手动任务",new SelectHandler() {
      public void onSelect(SelectEvent event) {
        presenter.displayManual();
      }
    }));
  }
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){
          handler.onSelect(event);
        }
View Full Code Here

          }
        }
        return result;
      }
    });
    addButton(new TextButton("保存", new SelectHandler() {
      public void onSelect(SelectEvent event) {
        if(area.validate()){
          Map<String, String> conf=FormatUtil.parseProperties(area.getValue());
          RPCS.getProfileService().updateHadoopConf(conf, new AbstractAsyncCallback<Void>() {
            public void onSuccess(Void result) {
View Full Code Here

TOP

Related Classes of com.sencha.gxt.widget.core.client.button.TextButton

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.