Package com.sencha.gxt.widget.core.client.event.SelectEvent

Examples of com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler


    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

                            return null;
                        }
                    } , 30, "下载");
            final TextButtonCell downloadButton = new TextButtonCell();
            downloadButton.setIcon(Images.getImageResources().download());
            downloadButton.addSelectHandler(new SelectHandler() {
                @Override
                public void onSelect(SelectEvent event) {
                    downloadSelectPartition();
                }
            });
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

    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

 
  private Map<Application, Widget> apps=new HashMap<Application, Widget>();
  public void addApp(final Application app){
    apps.put(app, null);
    if(!shortcuts.contains(app.getShortcut())){
      app.getShortcut().addSelectHandler(new SelectHandler() {
        public void onSelect(SelectEvent event) {
          if(screen.getActiveWidget()!=null && screen.getActiveWidget().equals(apps.get(app))){
            return;
          }
          getPlatformContext().getPlatformBus().fireEvent(new PlatformPlaceChangeEvent(app.getPlace(),true));
View Full Code Here

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.TOP))
    {
      top = new IconButton(appearance.top());
      top.setToolTip(DkMain.i18n().label_move_top());
      top.addSelectHandler(new SelectHandler()
      {

        @Override
        public void onSelect(final SelectEvent event)
        {
          onTop();
        }
      });
      buttonBar.add(top);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.UP))
    {
      up = new IconButton(appearance.up());
      up.setToolTip(DkMain.i18n().label_move_up());
      up.addSelectHandler(new SelectHandler()
      {

        @Override
        public void onSelect(final SelectEvent event)
        {
          onUp();
        }
      });
      buttonBar.add(up);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.ALL_RIGHT))
    {
      allRight = new IconButton(appearance.allRight());
      allRight.setToolTip(DkMain.i18n().label_add_all());
      allRight.addSelectHandler(new SelectHandler()
      {
        @Override
        public void onSelect(final SelectEvent event)
        {
          onAllRight();
        }
      });
      buttonBar.add(allRight);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.RIGHT))
    {
      right = new IconButton(appearance.right());
      right.setToolTip(DkMain.i18n().label_add());
      right.addSelectHandler(new SelectHandler()
      {

        @Override
        public void onSelect(final SelectEvent event)
        {
          onRight();
        }
      });
      buttonBar.add(right);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.LEFT))
    {
      left = new IconButton(appearance.left());
      left.setToolTip(DkMain.i18n().label_remove());
      left.addSelectHandler(new SelectHandler()
      {
        @Override
        public void onSelect(final SelectEvent event)
        {
          onLeft();
        }
      });
      buttonBar.add(left);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.ALL_LEFT))
    {
      allLeft = new IconButton(appearance.allLeft());
      allLeft.setToolTip(DkMain.i18n().label_remove_all());
      allLeft.addSelectHandler(new SelectHandler()
      {
        @Override
        public void onSelect(final SelectEvent event)
        {
          onAllLeft();
        }
      });
      buttonBar.add(allLeft);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.DOWN))
    {
      down = new IconButton(appearance.down());
      down.setToolTip(DkMain.i18n().label_move_down());
      down.addSelectHandler(new SelectHandler()
      {

        @Override
        public void onSelect(final SelectEvent event)
        {
          onDown();
        }
      });
      buttonBar.add(down);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.BOTTOM))
    {
      bottom = new IconButton(appearance.bottom());
      bottom.setToolTip(DkMain.i18n().label_move_bottom());
      bottom.addSelectHandler(new SelectHandler()
      {

        @Override
        public void onSelect(final SelectEvent event)
        {
View Full Code Here

TOP

Related Classes of com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler

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.