Package org.zkoss.zul

Examples of org.zkoss.zul.Grid$Renderer


            bandbox.close();
        }
    }

    private void repaint(Component self, HoursGroupWrapper hoursGroupWrapper) {
        Grid grid = getHoursGroupDetailsGrid(self);
        if (grid != null) {
            grid.setModel(new SimpleListModel(hoursGroupWrapper
                    .getCriterionRequirementWrappersView().toArray()));
            grid.invalidate();
        } else {
            Util.reloadBindings(listHoursGroups);
        }
    }
View Full Code Here


        this.dataSource = dataSource;
        timeTrackedTable = new TimeTrackedTable<B>(
                dataForTimeTracker(dataSource), cellRendererForTimeTracker,
                timeTracker);
        timeTrackedTable.setSclass("inner-timetracked-table");
        leftPane = new Grid();
        zoomLevelListener = new IZoomLevelChangedListener() {
            @Override
            public void zoomLevelChanged(ZoomLevel detailLevel) {
                loadModelForLeftPane();
            }
View Full Code Here

            if (Messagebox.show(_("Delete template. Are you sure?"),
                    _("Confirm"),
                    Messagebox.OK | Messagebox.CANCEL, Messagebox.QUESTION) == Messagebox.OK) {
                if (this.model.hasNotApplications(template)) {
                    this.model.confirmDelete(template);
                    Grid gridOrderTemplates = (Grid) listWindow
                            .getFellowIfAny("listing");
                    if (gridOrderTemplates != null) {
                        Util.reloadBindings(gridOrderTemplates);
                    }
                } else {
View Full Code Here

        details.appendChild(appendGridItems(row, taskQualityForm));
        details.setOpen(false);
    }

    private Grid appendGridItems(Row row, TaskQualityForm taskQualityForm) {
        Grid gridItems = new Grid();

        gridItems.setMold("paging");
        gridItems.setPageSize(5);
        gridItems.setFixedLayout(true);

        renderColumns(gridItems);

        gridItems.setRowRenderer(getTaskQualityFormItemsRowRenderer());
        gridItems.setModel(new SimpleListModel(taskQualityForm
                .getTaskQualityFormItems().toArray()));

        return gridItems;
    }
View Full Code Here

            checkbox.addEventListener(Events.ON_CHECK, new EventListener() {
                @Override
                public void onEvent(Event event) {
                    assignedTaskQualityFormsToOrderElementModel
                            .updatePassedTaskQualityFormItems(taskQualityForm);
                    Grid gridItems = row.getGrid();
                    gridItems.setModel(new SimpleListModel(taskQualityForm
                            .getTaskQualityFormItems().toArray()));
                    gridItems.invalidate();
                }
            });
        }
    }
View Full Code Here

        return null;
    }

    private Row findRowOfTaskQualityFormItem(Row rowTaskQualityForm,
            String itemName) {
        Grid gridItems = (Grid) rowTaskQualityForm.getFirstChild()
                .getFirstChild();
        List<Row> rows = (List<Row>) gridItems.getRows().getChildren();
        for (Row row : rows) {
            TaskQualityFormItem item = (TaskQualityFormItem) row.getValue();
            if ((item != null) && (itemName.equals(item.getName()))) {
                return row;
            }
View Full Code Here

    @Override
    protected void delete(WorkReportType workReportType)
            throws InstanceNotFoundException {
        workReportTypeModel.confirmRemove(workReportType);
        final Grid workReportTypes = (Grid) listWindow.getFellowIfAny("listing");
        if (workReportTypes != null) {
            Util.reloadBindings(workReportTypes);
        }
    }
View Full Code Here

    }

    @Override
    protected void delete(QualityForm qualityForm) throws InstanceNotFoundException {
        qualityFormModel.confirmDelete(qualityForm);
        Grid qualityForms = (Grid) listWindow
                .getFellowIfAny("qualityFormsList");
        if (qualityForms != null) {
            Util.reloadBindings(qualityForms);
        }
    }
View Full Code Here

    private void createDerivedAllocationsGrid() {
        if (derivedAllocationsGrid != null) {
            return;
        }
        derivedAllocationsGrid = new Grid();
        DerivedAllocationColumn.appendColumnsTo(derivedAllocationsGrid);
        derivedAllocationsGrid.setRowRenderer(DerivedAllocationColumn
                .createRenderer());
    }
View Full Code Here

        Window win = (Window) Executions.createComponents(
                "/orders/_synchronizationInfo.zul", null, args);

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

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

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

        syncInfoGrid.setRowRenderer(getSynchronizationInfoRenderer());

        try {
            win.doModal();
        } catch (SuspendNotAllowedException e) {
            throw new RuntimeException(e);
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Grid$Renderer

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.