Package org.zkoss.zul

Examples of org.zkoss.zul.Radio


        Textbox pccCodeTB = (Textbox) getFellow("pccCode");
        Textbox venderCodeTB = (Textbox) getFellow("venderCode");

        Iterator it = isEquipment.getItems().iterator();
        while (it.hasNext()) {
            Radio radio = (Radio) it.next();
            if (radio.getValue().equals(var.getIsEquipment())) {
                radio.setChecked(true);
            }
        }

        equipmentNameTB.setText(var.getEquipmentName());
View Full Code Here


        Combobox companyCB = (Combobox) getFellow("company");
        Radiogroup sexRG = (Radiogroup) getFellow("sex");

        Iterator it = hasCitizenshipRG.getItems().iterator();
        while (it.hasNext()) {
            Radio r = (Radio) it.next();
            if (r.getValue().equals(form.getHasCitizenship())) {
                r.setChecked(true);
            }
        }
        mechanicNameTB.setText(form.getMechanicName());
        uniIdTB.setText(form.getUniId());

        boolean mechanicBelongToCompany = false;
        Iterator companyCBItr = companyCB.getItems().iterator();
        while (companyCBItr.hasNext()) {
            Comboitem item = (Comboitem) companyCBItr.next();
            Org varCompany = (Org) item.getValue();
            if (form.getCompanyId() != null
                    && varCompany.getOrgId().equals(form.getCompanyId())) {
                companyCB.setSelectedItem(item);
                form.setCompany(varCompany); // if has company, re-link it now
                mechanicBelongToCompany = true;
            }
          
        }
        if(!mechanicBelongToCompany){
            companyCB.setValue("please");
        }

       
        Iterator sexRGItr = sexRG.getItems().iterator();
        while (sexRGItr.hasNext()) {
            Radio r = (Radio) sexRGItr.next();
            if (r.getValue().equals(form.getSex())) {
                r.setChecked(true);
            }
        }


        Datebox birthdayDB = (Datebox) getFellow("birthday");
View Full Code Here

        authNameTB.setText(var.getAuthName());
        authDescTB.setText(var.getAuthDescription());

        Iterator it = editable.getItems().iterator();
        while (it.hasNext()) {
            Radio radio = (Radio) it.next();
            if (radio.getValue().equals(var.getEditable())) {
                radio.setChecked(true);
            }
        }
    }
View Full Code Here

  private void export(Exporter exporter, OutputStream outputStream) {
    final Book book = ss.getBook();
    if (book == null) {
      return;
    }
    Radio seld = range.getSelectedItem();
    if (seld == allSheet) {
      exporter.export(book, outputStream);
    } else if (seld == currSelection){
      Rect rect = selection;
      String area = ss.getColumntitle(rect.getLeft()) + ss.getRowtitle(rect.getTop()) + ":" +
View Full Code Here

  private void export(Exporter exporter, OutputStream outputStream) {
    final Book book = ss.getBook();
    if (book == null) {
      return;
    }
    Radio seld = range.getSelectedItem();
    if (seld == allSheet) {
      exporter.export(book, outputStream);
    } else if (seld == currSelection){
      Rect rect = ss.getSelection();
      String area = ss.getColumntitle(rect.getLeft()) + ss.getRowtitle(rect.getTop()) + ":" +
View Full Code Here

        if (sgrup == null || lgrup != referensi.getGrup()) {
            return;
        }
        List<Radio> rads = radioGrup.getItems();
        for (Iterator<Radio> rad = rads.iterator(); rad.hasNext(); ) {
            Radio next = rad.next();
            if (next.getValue() != null &&
                    !"".equals(next.getValue()) &&
                    next.getValue().toString().equalsIgnoreCase(referensi.getKode())) {
                next.setSelected(true);
                return;
            }
        }
    }
View Full Code Here

        startAllocationDate.setDisabled(radiogroup.getSelectedIndex() != 2);
    }

    private void disable(Radiogroup radiogroup, boolean disabled) {
        for (Object obj: radiogroup.getChildren()) {
            final Radio each = (Radio) obj;
            each.setDisabled(disabled);
        }
    }
View Full Code Here

    }

    private void initUserBindingOptions() {
        UserBindingOption[] values = UserBindingOption.values();
        for (UserBindingOption option : values) {
            Radio radio = new Radio(_(option.label));
            if (option.equals(UserBindingOption.CREATE_NEW_USER)
                    && !SecurityUtils
                            .isSuperuserOrUserInRoles(UserRole.ROLE_USER_ACCOUNTS)) {
                radio.setDisabled(true);
                radio.setTooltiptext(_("You do not have permissions to create new users"));
            }
            userBindingRadiogroup.appendChild(radio);
        }
    }
View Full Code Here

    private ICellForDetailItemRenderer<Integer, Type> reassigningTypesRenderer() {
        return new ICellForDetailItemRenderer<Integer, Type>() {
            @Override
            public org.zkoss.zk.ui.Component cellFor(Integer column, Type type) {
                Radio radio = type.createRadio();
                radio.setChecked(currentType == type);
                return radio;
            }
        };
    }
View Full Code Here

        reassigningTypeSelector.addEventListener(Events.ON_CHECK,
                new EventListener() {

                    @Override
                    public void onEvent(Event event) {
                        Radio selectedItem = reassigningTypeSelector
                                .getSelectedItem();
                        newTypeChoosen(Type.fromRadio(selectedItem));
                        associatedDate.setVisible(currentType
                                .needsAssociatedDate());
                    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Radio

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.