Package org.zkoss.zul

Examples of org.zkoss.zul.Row$ExtraCtrl


            return null;
        }
        Rows rows = grid.getRows();
        for (Object each : rows.getChildren()) {
            if (each instanceof Row) {
                Row row = (Row) each;
                Object value = row.getValue();
                if (needle.equals(value)) {
                    return row;
                }
            }
        }
View Full Code Here


    private static void showAt(Component comp, InvalidValue invalidValue) {
        throw new WrongValueException(comp, _(invalidValue.getMessage()));
    }

    private static void showAt(Grid comp, InvalidValue invalidValue) {
        Row row = ComponentsFinder.findRowByValue(comp,
                invalidValue.getInvalidValue());
        if (row != null) {
            throw new WrongValueException(row, _(invalidValue.getMessage()));
        }
    }
View Full Code Here

                int page = 0;
                int counter = 0;

                Rows rows = gridCriticalPathTasks.getRows();
                for (Object each : rows.getChildren()) {
                    Row row = (Row) each;
                    List<org.zkoss.zk.ui.Component> children = row
                            .getChildren();

                    Integer sum = 0;
                    intbox = (Intbox) children.get(3);
                    sum += intbox.getValue();
View Full Code Here

    private void validateCriterionSatisfactionDTO(InvalidValue invalidValue,
            CriterionSatisfactionDTO satisfactionDTO) {
        if(listingCriterions != null){

            // Find which listItem contains CriterionSatisfaction inside listBox
            Row row = findRowOfCriterionSatisfactionDTO(listingCriterions.getRows(),
                    satisfactionDTO);

            if (row != null) {
                String propertyName = invalidValue.getPropertyPath();
View Full Code Here

    private void showInvalidValue(InvalidValue invalidValue,
            TaskQualityForm taskQualityForm) {
        if (assignedTaskQualityForms != null) {
            // Find which row contains TaskQualityForm inside grid
            Row row = findRowOfTaskQualityForm(assignedTaskQualityForms
                    .getRows().getChildren(), taskQualityForm);

            if (row != null && invalidValue.getInvalidValue() instanceof String) {
                String itemName = (String) invalidValue.getInvalidValue();
                String propertyName = invalidValue.getPropertyPath();
                Row rowItem = findRowOfTaskQualityFormItem(row, itemName);

                if (rowItem != null) {
                    if (TaskQualityFormItem.propertyDate.equals(propertyName)) {
                        openDetails(rowItem);
                        Datebox datebox = getDatebox(rowItem);
View Full Code Here

    private void validateCriterionSatisfactionDTO(InvalidValue invalidValue,
            CriterionSatisfactionDTO satisfactionDTO) {
        if (listingCriterions != null) {

            // Find which listItem contains CriterionSatisfaction inside listBox
            Row row = findRowOfCriterionSatisfactionDTO(listingCriterions
                    .getRows(), satisfactionDTO);

            if (row != null) {
                String propertyName = invalidValue.getPropertyPath();
View Full Code Here

        return new Constraint() {
            @Override
            public void validate(Component comp, Object value)
                    throws WrongValueException {

                Row row = (Row) comp.getParent();
                EntitySequence sequence = (EntitySequence) row.getValue();
                if (!sequence.isAlreadyInUse()) {
                    String errorMessage = validPrefix(sequence, (String) value);
                    if (errorMessage != null) {
                        throw new WrongValueException(comp, errorMessage);
                    }
View Full Code Here

        return new Constraint() {

            @Override
            public void validate(Component comp, Object value)
                    throws WrongValueException {
                Row row = (Row) comp.getParent();
                EntitySequence sequence = (EntitySequence) row.getValue();
                if (!sequence.isAlreadyInUse()) {
                    Integer numberOfDigits = (Integer) value;
                    try {
                        sequence.setNumberOfDigits(numberOfDigits);
                    } catch (IllegalArgumentException e) {
View Full Code Here

        }
    }

    private void showInvalidDescriptionFieldName(DescriptionField field) {
        // Find which row contains the description field inside grid
        Row row = findRowByValue(listDescriptionFields.getRows(), field);
            Textbox fieldName = (Textbox) row.getFirstChild();
        throw new WrongValueException(fieldName,
                _("The field name must be unique and not empty"));
    }
View Full Code Here

                _("The field name must be unique and not empty"));
    }

    private void showInvalidDescriptionFieldLength(DescriptionField field) {
        // Find which row contains the description field inside grid
        Row row = findRowByValue(listDescriptionFields.getRows(), field);
        Intbox fieldName = (Intbox) row.getChildren().get(1);
        throw new WrongValueException(fieldName,
                _("The length must be greater than 0 and not empty"));
    }
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.