Package org.zkoss.zul

Examples of org.zkoss.zul.Radio


    }

        private void appendActiveRadiobox(final Row row,
                final EntitySequence entitySequence) {

            final Radio radiobox = Util.bind(new Radio(),
                    new Util.Getter<Boolean>() {

                        @Override
                        public Boolean get() {
                            return entitySequence.isActive();
View Full Code Here


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

                    @Override
                    public void onEvent(Event event) {
                        Radio radio = (Radio) event.getTarget();
                        if (radio == null) {
                            return;
                        }
                        onType(AllocationType.valueOf(radio.getValue()));
                        showSelectedAllocations();
                    }
                });
        // Feed with values
        for (AllocationType each : behaviour.allocationTypes()) {
View Full Code Here

        }
        doInitialSelection();
    }

    private Radio radio(AllocationType allocationType) {
        Radio result = new Radio(allocationType.getName());
        result.setValue(allocationType.toString());
        return result;
    }
View Full Code Here

        Util.reloadBindings(criterionsTree);
        refreshListBoxResources();
    }

    private void doInitialSelection() {
        Radio item = allocationTypeSelector.getItemAtIndex(0);
        currentAllocationType = AllocationType.valueOf(item.getValue());
        showSelectedAllocations();
        item.setSelected(true);
    }
View Full Code Here

            @Override
            public void render(Row row, Object data) throws Exception {
                CalculationTypeRadio type = (CalculationTypeRadio) data;

                Radio radio = type.createRadio();
                row.appendChild(radio);

                if (formBinder != null) {
                    if (type == CalculationTypeRadio.from(formBinder
                            .getCalculatedValue())) {
                        radio.setChecked(true);
                    }
                    radio.setDisabled(formBinder.isAnyManual()
                            || formBinder.isTaskUpdatedFromTimesheets());
                }
            }
        };
    }
View Full Code Here

    private void appendRadioSpread(final Listitem listItem){
        final AdvanceAssignment advanceAssignment = (AdvanceAssignment) listItem
                .getValue();

        final Radio reportGlobalAdvance = Util.bind(new Radio(),
                new Util.Getter<Boolean>() {

                    @Override
                    public Boolean get() {
                        return advanceAssignment.getReportGlobalAdvance();
                    }
                }, new Util.Setter<Boolean>() {

                    @Override
                    public void set(Boolean value) {
                        advanceAssignment.setReportGlobalAdvance(value);
                        setReportGlobalAdvance(listItem);
                    }
                });

        Listcell listCell = new Listcell();
        listCell.appendChild(reportGlobalAdvance);
        listItem.appendChild(listCell);

        if (((AdvanceAssignment) listItem.getValue()).getReportGlobalAdvance()) {
            reportGlobalAdvance.getRadiogroup().setSelectedItem(
                    reportGlobalAdvance);
            reportGlobalAdvance.getRadiogroup().invalidate();
        }
    }
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.