Package com.google.gwt.user.client.ui

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


    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

    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

   */
  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

    }
   
    private void addBuildTypes(String id)
    {
        String radioGroup = HTMLPanel.createUniqueId();
        m_ant = new RadioButton(radioGroup, Index.getStrings().buildWithAnt());
        m_ant.addClickHandler(new ClickHandler() {
           
            @Override
            public void onClick(ClickEvent event)
            {
                m_type = TYPE_ANT;
            }
        });
        add(m_ant, id + "buildTypes");

        m_maven = new RadioButton(radioGroup, Index.getStrings().buildWithMaven());
        m_maven.addStyleName("radioOption");
        m_maven.setValue(true);
        m_maven.addClickHandler(new ClickHandler() {
           
            @Override
View Full Code Here

      hdr.setText(Util.C.newAgreementSelectTypeHeading());
    }
    radios.add(hdr);

    for (final ContributorAgreement cla : available) {
      final RadioButton r = new RadioButton("cla_id", cla.getName());
      r.addStyleName(Gerrit.RESOURCES.css().contributorAgreementButton());
      radios.add(r);

      if (mySigned.contains(cla.getName())) {
        r.setEnabled(false);
        final Label l = new Label(Util.C.newAgreementAlreadySubmitted());
        l.setStyleName(Gerrit.RESOURCES.css().contributorAgreementAlreadySubmitted());
        radios.add(l);
      } else {
        r.addClickHandler(new ClickHandler() {
          @Override
          public void onClick(final ClickEvent event) {
            showCLA(cla);
          }
        });
View Full Code Here

            CheckBox op;
            if (isMultiselect()) {
                op = new VCheckBox();
                op.setText(opUidl.getStringAttribute("caption"));
            } else {
                op = new RadioButton(id, opUidl.getStringAttribute("caption"));
                op.setStyleName("v-radiobutton");
            }
            op.addStyleName(CLASSNAME_OPTION);
            op.setValue(opUidl.getBooleanAttribute("selected"));
            boolean enabled = !opUidl.getBooleanAttribute("disabled")
View Full Code Here

            CheckBox op;
            if (isMultiselect()) {
                op = new VCheckBox();
                op.setText(opUidl.getStringAttribute("caption"));
            } else {
                op = new RadioButton(id, opUidl.getStringAttribute("caption"));
                op.setStyleName("v-radiobutton");
            }
            op.addStyleName(CLASSNAME_OPTION);
            op.setValue(opUidl.getBooleanAttribute("selected"));
            op.setEnabled(!opUidl.getBooleanAttribute("disabled")
View Full Code Here

    tbName = new TextBox();
    tbName.setTitle("To identify you by the name");

    nameHorizontal.add(tbName);
    HorizontalPanel genderHorizontal = new HorizontalPanel();
    rbMale = new RadioButton("Gender", "M");
    rbFemale = new RadioButton("Gender", "F");
    rbMale.setValue(true);
    genderHorizontal.add(new Label("Gender:"));
    genderHorizontal.add(rbMale);
    genderHorizontal.add(rbFemale);
    HorizontalPanel mailHorizontal = new HorizontalPanel();
View Full Code Here

   
    bookMark.add(bookMarkTitle);
   

    final VerticalPanel bookMarkType = new VerticalPanel();
    final RadioButton typePrivate = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelHigh"));
    final RadioButton typePublic = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelMedium"));
   
    typePrivate.setValue(true);
   
    bookMarkType.add(typePrivate);
    bookMarkType.add(typePublic);
   

    final Button saveButton = new Button(
        prefsUtils.getMsg("gadgetLabelSave"));


    addItemPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
    addItemPanel.add(bookMark);
   
    //addItemPanel.add(new HTML("&nbsp;"));
    //addItemPanel.add(bookMarkType);
 
    addItemPanel.add(new HTML("&nbsp;"));
    addItemPanel.add(saveButton);

    addDisclosurePanel.add(addItemPanel);
   
    ActionLabel add = new ActionLabel(prefsUtils.getMsg("gadgetLabelAdd"));
    add.setTitle(prefsUtils.getMsg("gadgetLabelAdd"));
    add.setStyleName("gadglet-ActionLabel");
   
    addDisclosurePanel.setHeader(add);

    mainPanel.add(addDisclosurePanel);

    mainPanel.add(results);

    RootPanel.get().add(mainPanel.getGadgetPanel());

    saveButton.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        changeBookMarkQry.setRequestAction(ReqActionTypes.ADD);
        changeBookMarkQry.clearParamList();
       
       
        String bookMarkType = "";
        if (typePrivate.getValue())
          bookMarkType = BookMarkType.PRIVATE.toString();
        else if (typePublic.getValue())
          bookMarkType = BookMarkType.PUBLIC.toString();
        else
          bookMarkType = BookMarkType.PRIVATE.toString();

        changeBookMarkQry.addParam(Params.BOOKMARK_TYPE.getParamName(),
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.RadioButton

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.