Package org.zkoss.zul

Examples of org.zkoss.zul.Row$ExtraCtrl


                _("The length must be greater than 0 and not empty"));
    }

    private void showInvalidWorkReportLabelTypeAssigment(int combo,
            String message, WorkReportLabelTypeAssigment labelType) {
        Row row = findRowByValue(listWorkReportLabelTypeAssigments.getRows(),
                labelType);
        Combobox comboLabelType = (Combobox) row.getChildren().get(combo);
        throw new WrongValueException(comboLabelType, _(message));
    }
View Full Code Here


        } catch (InstanceNotFoundException e) {
            throw new RuntimeException(e);
        } catch (InvalidValueException e) {
            NewDataSortableGrid listExceptionDayTypes = (NewDataSortableGrid) listWindow
                    .getFellowIfAny("listExceptionDayTypes");
            Row row = findRowByValue(listExceptionDayTypes,
                    calendarExceptionType);
            throw new WrongValueException(row, e.getMessage());
        }
    }
View Full Code Here

                    public void onEvent(Event event) {
                listCostCategories.renderAll();

                final Rows rows = listCostCategories.getRows();
                for (Iterator i = rows.getChildren().iterator(); i.hasNext(); ) {
                    final Row row = (Row) i.next();
                    final CostCategory category = (CostCategory) row.getValue();
                    Button btnDelete = (Button) ((Hbox)row.getChildren().get(2)).getChildren().get(1);
                    if (!canRemoveCostCategory(category)) {
                        btnDelete.setDisabled(true);
                        btnDelete.setImage("/common/img/ico_borrar_out.png");
                        btnDelete.setHoverImage("/common/img/ico_borrar_out.png");
                    }
View Full Code Here

        }
        messagesForUser.showInvalidValues(e);
    }

    private void showInvalidValue(HourCost hourCost) {
        Row row = ComponentsFinder.findRowByValue(listHourCosts, hourCost);
        if (row != null) {
            if (hourCost.getType() == null) {
                Listbox workHoursType = getWorkHoursType(row);
                String message = workHoursType.getItems().isEmpty() ? _("Hours types are empty. Please, create some hours types before proceeding")
                        : _("cannot be empty");
View Full Code Here

            public void onEvent(Event event) {
                gridMaterials.renderAll();

                final Rows rows = gridMaterials.getRows();
                for (Iterator i = rows.getChildren().iterator(); i.hasNext(); ) {
                    final Row row = (Row) i.next();
                    final Material material = (Material) row.getValue();
                    Button btnDelete = (Button) row.getChildren().get(6);
                    if (!materialsModel.canRemoveMaterial(material)) {
                        btnDelete.setDisabled(true);
                        btnDelete.setImage("/common/img/ico_borrar_out.png");
                        btnDelete.setHoverImage("/common/img/ico_borrar_out.png");
                    }
View Full Code Here

            public void onEvent(Event event) {
                gridLabels.renderAll();

                final Rows rows = gridLabels.getRows();
                for (Iterator i = rows.getChildren().iterator(); i.hasNext();) {
                    final Row row = (Row) i.next();
                    final Label label = (Label) row.getValue();
                    Button btnDelete = (Button) row.getChildren().get(2);
                    if (!canRemoveLabel(label)) {
                        btnDelete.setDisabled(true);
                        btnDelete.setImage("/common/img/ico_borrar_out.png");
                        btnDelete
                                .setHoverImage("/common/img/ico_borrar_out.png");
View Full Code Here

            public void onEvent(Event event) {
                gridLabelTypes.renderAll();

                final Rows rows = gridLabelTypes.getRows();
                for (Iterator i = rows.getChildren().iterator(); i.hasNext();) {
                    final Row row = (Row) i.next();
                    final LabelType labelType = (LabelType) row.getValue();
                    Hbox hbox = (Hbox) row.getChildren().get(2);
                    Button btnDelete = (Button) hbox.getChildren().get(1);
                    if (!canRemoveLabelType(labelType)) {
                        btnDelete.setDisabled(true);
                        btnDelete.setImage("/common/img/ico_borrar_out.png");
                        btnDelete
View Full Code Here

            if (type.equals(getAuthenticationType())) {
                combo.setSelectedItem(item);
            }
        }

        Row comboRow = (Row) editWindow
                .getFellowIfAny("authenticationTypeComboRow");
        comboRow.setVisible(true);
    }
View Full Code Here

                    messagesForUser.showInvalidValues(e);
                }
            }
            if (value instanceof WorkReportLine) {
                WorkReportLine workReportLine = (WorkReportLine) invalidValue.getRootBean();
                Row row = ComponentsFinder.findRowByValue(listWorkReportLines, workReportLine);
                if (row == null) {
                    messagesForUser.showInvalidValues(e);
                } else {
                    validateWorkReportLine(row, workReportLine);
                }
View Full Code Here

        return true;
    }

    private boolean validateWorkReportLine(WorkReportLine workReportLine) {
        Row row = ComponentsFinder.findRowByValue(listWorkReportLines,
                workReportLine);
        return row != null ? validateWorkReportLine(row, workReportLine)
                : false;
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Row$ExtraCtrl

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.