Examples of RadioButton


Examples of com.google.gwt.user.client.ui.RadioButton

    fp.clear();
    fp.add(renderer.render(radioButtons));
  }

  private RadioButton create(final String name) {
    final RadioButton rb = new RadioButton("rg_" + getDomId(), name);
    rb.setFormValue(name);
    rb.addStyleName(Styles.CBRB);
    rb.addClickHandler(new ClickHandler() {

      @SuppressWarnings("synthetic-access")
      @Override
      public void onClick(final ClickEvent event) {
        assert event.getSource() instanceof RadioButton;
        final RadioButton radio = (RadioButton) event.getSource();
        // fire a value change event..
        ValueChangeEvent.fire(fp, getDataValue(radio.getFormValue()));
      }
    });
    rb.addBlurHandler(this);
    return rb;
  }
View Full Code Here

Examples of com.google.gwt.user.client.ui.RadioButton

   */
  public CountSizeSingleFilterPanel(String group) {
    handlers = new LinkedList<OnChangeHandler>();
   
    // count
    countRb = new RadioButton(group, "Count")// TODO : i18n
    countRb.getElement().getStyle().setFloat(Style.Float.LEFT);
    countRb.setValue(true)// default select count
    countRb.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        onChange();
      }
    });
    this.add(countRb);
   
    // size
    sizeRb = new RadioButton(group, "Size")// TODO : i18n
    sizeRb.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        onChange();
      }
View Full Code Here

Examples of com.google.gwt.user.client.ui.RadioButton

    FlexTable panel = new FlexTable();
    formPanel.setWidget(panel);
   
   
   
    rb0 = new RadioButton("grp", "Local file:");

   
    final HorizontalPanel uploadContainer = new HorizontalPanel();
    uploadContainer.add(upload);
    rb0.setChecked(true);
View Full Code Here

Examples of com.google.gwt.user.client.ui.RadioButton

    FileTypePanel() {
      panel.add(new Label("File type: "));
      VerticalPanel vp = new VerticalPanel();
      panel.add(vp);
      for ( int i = 0; i < FILE_TYPES.length; i++ ) {
        vp.add( bts[i] = new RadioButton("filetype", FILE_TYPES[i]) );
      }
      bts[0].setChecked(true);
    }
View Full Code Here

Examples of com.google.gwt.user.client.ui.RadioButton

   */
  public KindSingleFilterPanel(String group) {
    handlers = new LinkedList<OnChangeHandler>();
   
    // count
    countRb = new RadioButton(group, "Count(All)")// TODO : i18n
    countRb.getElement().getStyle().setFloat(Style.Float.LEFT);
    countRb.setValue(true)// default select count
    countRb.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        onChange();
      }
    });
    this.add(countRb);
   
    // size
    sizeRb = new RadioButton(group, "Size(All)")// TODO : i18n
    sizeRb.getElement().getStyle().setFloat(Style.Float.LEFT);
    sizeRb.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        onChange();
      }
    });
    this.add(sizeRb);
   
    // count root
    countRootRb = new RadioButton(group, "Count(Root)")// TODO : i18n
    countRootRb.getElement().getStyle().setFloat(Style.Float.LEFT);
    countRootRb.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        onChange();
      }
    });
    this.add(countRootRb);
   
    // size root
    sizeRootRb = new RadioButton(group, "Size(Root)")// TODO : i18n
    sizeRootRb.getElement().getStyle().setFloat(Style.Float.LEFT);
    sizeRootRb.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        onChange();
      }
    });
    this.add(sizeRootRb);
   
    // count non root
    countNonRootRb = new RadioButton(group, "Count(Non Root)")// TODO : i18n
    countNonRootRb.getElement().getStyle().setFloat(Style.Float.LEFT);
    countNonRootRb.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        onChange();
      }
    });
    this.add(countNonRootRb);
   
    // size non root
    sizeNonRootRb = new RadioButton(group, "Size(Non Root)")// TODO : i18n
    sizeNonRootRb.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        onChange();
      }
View Full Code Here

Examples of com.gwtmobile.ui.client.widgets.RadioButton

    initWidget(uiBinder.createAndBindUi(this))
  }
 
    @UiHandler("radiogroup1")
    void onRadioGroup1SelectionChanged(SelectionChangedEvent e) {
      RadioButton radio = (RadioButton) radiogroup1.getWidget(e.getSelection());
      Utils.Console("group1 " + e.getSelection() + " " + radio.getText());
    }
View Full Code Here

Examples of com.gwtmobile.ui.client.widgets.RadioButton

      Utils.Console("group1 " + e.getSelection() + " " + radio.getText());
    }

    @UiHandler("radiogroup2")
    void onRadioGroup2SelectionChanged(SelectionChangedEvent e) {
      RadioButton radio = (RadioButton) radiogroup2.getWidget(e.getSelection());
      Utils.Console("group2 " + e.getSelection() + " " + radio.getText());
    }
View Full Code Here

Examples of com.sun.lwuit.RadioButton

        internal_state = STATUS;
    Image[] unselectedImages = new Image[] { Contents.displayImage("offline"), Contents.displayImage("online"), Contents.displayImage("away"), Contents.displayImage("busy")/*, Contents.displayImage("unsubscribed")*/ }
    //status_list = new ChoiceGroup(Contents.choose_status, ChoiceGroup.EXCLUSIVE, Contents.mystring_presence, image);
    status_list = new ButtonGroup();
    for (int k = 0; k < Contents.mystring_presence.length; k++) {
      RadioButton rb = new RadioButton(Contents.mystring_presence[k], unselectedImages[k]);
      Style s = rb.getStyle();
          s.setMargin(0, 0, 0, 0);
        
          rb.setPressedIcon(unselectedImages[k].scaled( (int) (unselectedImages[k].getWidth()* 0.8),
                    (int)(unselectedImages[k].getHeight() *0.8) ));
          rb.setAlignment(Label.LEFT);
            rb.setTextPosition(Label.RIGHT);
          s.setBgTransparency(70);
          status_list.add(rb);
          status_form.addComponent(rb);
          if (Contents.mystring_presence[k].equals(Datas.jid.getPresence())) {
        status_list.setSelected(k);
View Full Code Here

Examples of fr.soleil.comete.swing.RadioButton

    private static final long serialVersionUID = 1995592801053165579L;

    @Override
    public IComponent initWidget() {
        return new RadioButton();
    }
View Full Code Here

Examples of fr.soleil.comete.widget.RadioButton



  @Override
  public AbstractWidget<?, Boolean> initWidget() {
    return new RadioButton();
  }
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.