Examples of ToggleGroup


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

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

    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

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

    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

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

    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

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

    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

Examples of javafx.scene.control.ToggleGroup

        assert startButton != null : "fx:id=\"startButton\" was not injected: check your FXML file 'Login.fxml'.";
        assert user != null : "fx:id=\"user\" was not injected: check your FXML file 'Login.fxml'.";


   
    ToggleGroup groupConnection = new ToggleGroup();
    serverRadioButton.setSelected(true);
    serverRadioButton.setToggleGroup(groupConnection);
   
    user.disableProperty().bind(serverRadioButton.selectedProperty().not());
    password.disableProperty().bind(serverRadioButton.selectedProperty().not());
View Full Code Here

Examples of javafx.scene.control.ToggleGroup

        grid.setAlignment(Pos.CENTER);
        grid.setHgap(2);
        grid.setVgap(10);
        grid.setPadding(new Insets(10, 25, 10, 25));
       
        ToggleGroup group = new ToggleGroup();
        goToNumber = new RadioButton("Go To Number:");
        goToNumber.setSelected(true);
        goToNumber.setToggleGroup(group);
        goToTime = new RadioButton("Go To Time:");
        goToTime.setToggleGroup(group);
View Full Code Here

Examples of javafx.scene.control.ToggleGroup

       
        // create toolbar
        toolBar = new VBox(0);
        toolBar.setId("ToolsToolbar");
        toolBar.setClip(createToolBarPath(Color.BLACK, null));
        ToggleGroup toggleGroup = new ToggleGroup();
        for (int i=0; i < tools.length; i++) {
            final int index = i;
            final Tool tool = tools[i];
            final ToggleButton button = new ToggleButton(tool.getName().replace(' ', '\n'));
            ImageView icon = new ImageView(tool.getIcon());
View Full Code Here

Examples of javafx.scene.control.ToggleGroup

        this.showEmbedded = new ToggleButton("Embedded");
        this.showStandalone = new ToggleButton("Standalone");
        this.showHybrid = new ToggleButton("Hybrid");
        this.showIncluded = new ToggleButton("Included");

        final ToggleGroup group = new PersistentButtonToggleGroup();
        group.getToggles().addAll(this.showEmbedded, this.showStandalone, this.showHybrid, this.showIncluded);

        getRootNode().setTop(FlowPaneBuilder.create()
                .children(this.showEmbedded, this.showStandalone, this.showIncluded, this.showHybrid)
                .build());
View Full Code Here

Examples of javafx.scene.control.ToggleGroup

    private IconSwitch  iconSwitchSymbol1;

    @Override public void init() {
        onOffSwitch = new OnOffSwitch();

        ToggleGroup iconSwitchToggleGroup = new ToggleGroup();

        iconSwitchSymbol = new IconSwitch();
        iconSwitchSymbol.setToggleGroup(iconSwitchToggleGroup);
        iconSwitchSymbol.setSelected(true);
        iconSwitchSymbol.setSymbolType(SymbolType.POWER);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.