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

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


    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();
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        if(event.getValue()){
          if(allChartContainer.getWidgetIndex(trend)==-1){
            allChartContainer.add(trend);
          }
          allChartContainer.setActiveWidget(trend);
        }
      }
    });
    ToggleButton ownerTrend=new ToggleButton("负责人失败任务趋势");
    ownerTrend.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      private OwnerJobTrend trend=new OwnerJobTrend();
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        if(event.getValue()){
          if(allChartContainer.getWidgetIndex(trend)==-1){
            allChartContainer.add(trend);
          }
          allChartContainer.setActiveWidget(trend);
        }
      }
    });
    ownerTrend.setAllowDepress(false);
    tg.add(runningTrend);
    tg.add(ownerTrend);
    allBtnContainer.add(runningTrend,vBoxData);
    allBtnContainer.add(ownerTrend,vBoxData);
    allContainer.setWestWidget(allBtnContainer,new BorderLayoutData(300));
    allContainer.setCenterWidget(allChartContainer);
    panel.add(allContainer, new TabItemConfig("统计报表", false));
View Full Code Here


    formPanel=new FormPanel();
   
    VerticalLayoutContainer p = new VerticalLayoutContainer();
    formPanel.add(p);
   
    zkType=new ToggleGroup();
    useDefault=new Radio();
    useDefault.setBoxLabel("关闭");
    useCustom=new Radio();
    useCustom.setBoxLabel("开启");
    zkType.add(useDefault);
View Full Code Here

    leaf.setBoxLabel("小目录");
    leaf.setToolTipConfig(new ToolTipConfig("小目录,不可修改", "该类型的组下只能添加Job任务,不能添加目录"){{setDismissDelay(0);}});
    HorizontalPanel radios=new HorizontalPanel();
    radios.add(dir);
    radios.add(leaf);
    group=new ToggleGroup();
    group.add(dir);
    group.add(leaf);
   
    p.add(new FieldLabel(name, "组名称(*)"), new VerticalLayoutData(1, -1));
    p.add(new FieldLabel(radios,"组类型(*)"), new VerticalLayoutData(1, -1));
View Full Code Here

    leaf.setBoxLabel("叶子组");
    leaf.setToolTipConfig(new ToolTipConfig("叶子组,不可修改", "该类型的组下只能添加Job任务,不能添加组"){{setDismissDelay(0);}});
    HorizontalPanel radios=new HorizontalPanel();
    radios.add(dir);
    radios.add(leaf);
    group=new ToggleGroup();
    group.add(dir);
    group.add(leaf);


    p.add(new FieldLabel(name, "组名称(*)"), new VerticalLayoutData(-18, -1));
View Full Code Here

    super(new HorizontalPanel());
    setYesChoiceLabel(DkMain.i18n().label_yes());
    setNoChoiceLabel(DkMain.i18n().label_no());
    setUndefinedChoiceLabel(DkMain.i18n().label_undefined());
    final HorizontalPanel panel = (HorizontalPanel) getWidget();
    this.toggleGroup = new ToggleGroup();
    toggleGroup.add(choiceYes);
    toggleGroup.add(choiceNo);
    panel.add(choiceYes);
    panel.add(choiceNo);
    if (displayEmptyChoice)
View Full Code Here

TOP

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

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.