Package com.taobao.zeus.web.platform.client.module.jobmanager

Examples of com.taobao.zeus.web.platform.client.module.jobmanager.CheckableJobTree


      baseDepJobs.setWidth(150);
      baseDepJobs.setReadOnly(true);
      baseDepJobs.addHandler(new ClickHandler() {
        @Override
        public void onClick(final ClickEvent event) {
          final CheckableJobTree tree = new CheckableJobTree();
          tree.setSelectHandler(new SelectHandler() {
            @Override
            public void onSelect(final SelectEvent event) {
              List<GroupJobTreeModel> list = tree.getTree()
                  .getCheckedSelection();// .getSelectionModel().getSelectedItems();
              String result = "";
              for (GroupJobTreeModel m : list) {
                if (m.isJob()) {
                  result += m.getId() + ",";
                }
              }
              if (result.endsWith(",")) {
                result = result.substring(0,
                    result.length() - 1);
              }
              baseDepJobs.setValue(result.toString(), true);
              baseDepJobs.validate();
            }
          });
          tree.show();
          tree.refresh(new Callback(){
            @Override
            public void callback() {
              tree.init(baseDepJobs.getValue());
            }
          });
        }
      }, ClickEvent.getType());
      ListStore<Map<String, String>> cycleStore = new ListStore<Map<String, String>>(
View Full Code Here

TOP

Related Classes of com.taobao.zeus.web.platform.client.module.jobmanager.CheckableJobTree

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.