Package org.zkoss.zul

Examples of org.zkoss.zul.SimpleListModel


    private Listbox createListPosition() {
        final Listbox listPosition = new Listbox();
        listPosition.setMold("select");

        listPosition.setModel(new SimpleListModel(
                getPositionInWorkReportEnums()));
        listPosition.setItemRenderer(new EnumsListitemRenderer());
        return listPosition;
    }
View Full Code Here


        });
        initializeHoursType();
    }

    private void initializeHoursType() {
        allHoursType = new SimpleListModel(costCategoryModel.getAllHoursType());
    }
View Full Code Here

    private void showConstraintErrorsFor(MaterialCategory materialCategory) {
        if (locateAndSelectMaterialCategory(materialCategory)) {

            // Load materials for category
            final List<Material> materials = getMaterials(materialCategory);
            gridMaterials.setModel(new SimpleListModel(materials));
            gridMaterials.renderAll();

            // Show errors
            ConstraintChecker.isValid(gridMaterials);
        }
View Full Code Here

        }
    }

    public void refreshMaterials() {
        final List<Material> materials = getMaterials();
        gridMaterials.setModel(new SimpleListModel(materials));
        refreshMaterialsListTitle();
        Util.reloadBindings(gridMaterials);
    }
View Full Code Here

        SynchronizationInfo synchronizationInfo = exportTimesheetsToTim.getSynchronizationInfo();
        args.put("action", synchronizationInfo.getAction());
        args.put("showSuccess", synchronizationInfo.isSuccessful());
        args.put("failedReasons",
                new SimpleListModel(synchronizationInfo.getFailedReasons()));

        Window timImpExpInfoWindow = (Window) Executions.createComponents(
                "/orders/_timImpExpInfo.zul", null, args);

        try {
View Full Code Here

        reloadDerivedAllocationsData();
    }

    private void reloadDerivedAllocationsData() {
        if (derivedAllocationsGrid != null) {
            derivedAllocationsGrid.setModel(new SimpleListModel(
                    getDerivedAllocations()));
        }
    }
View Full Code Here

        }
        return Integer.valueOf(0);
    }

    public void initializeGridTaskRows(List<AggregatedHoursGroup> rows) {
        gridTaskRows.setModel(new SimpleListModel(rows));
        gridTaskRows.setRowRenderer(newTaskRowsRenderer());
    }
View Full Code Here

    public ListModel getZoomLevels() {
        ZoomLevel[] selectableZoomlevels = { ZoomLevel.DETAIL_ONE,
                ZoomLevel.DETAIL_TWO, ZoomLevel.DETAIL_THREE,
                ZoomLevel.DETAIL_FOUR, ZoomLevel.DETAIL_FIVE };
        return new SimpleListModel(selectableZoomlevels);
    }
View Full Code Here

                    groupbox.appendChild(new Label(_("Completed")));
                } else {

                    Listbox listbox = new Listbox();

                    listbox.setModel(new SimpleListModel(synchronizationInfo
                            .getFailedReasons()));
                    groupbox.appendChild(listbox);
                }
            }
        };
View Full Code Here

        Window syncInfoWin = (Window) win.getFellowIfAny("syncInfoWin");

        Grid syncInfoGrid = (Grid) syncInfoWin.getFellowIfAny("syncInfoGrid");

        syncInfoGrid.setModel(new SimpleListModel(getSynchronizationInfos()));

        syncInfoGrid.setRowRenderer(getSynchronizationInfoRenderer());

        try {
            win.doModal();
View Full Code Here

TOP

Related Classes of org.zkoss.zul.SimpleListModel

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.