Package org.dspace.app.xmlui.wing.element

Examples of org.dspace.app.xmlui.wing.element.Composite.addError()


                fullDate.setHelp(cleanHints(dcInput.getHints()));
                if (dcInput.isRequired())
                        fullDate.setRequired();
                if (isFieldInError(fieldName))
                    if (dcInput.getWarning() != null && dcInput.getWarning().length() > 0) {
                        fullDate.addError(dcInput.getWarning());
                    } else {
                        fullDate.addError(T_required_field);
                    }
                if (dcInput.isRepeatable() && !readonly)
                        fullDate.enableAddOperation();
View Full Code Here


                        fullDate.setRequired();
                if (isFieldInError(fieldName))
                    if (dcInput.getWarning() != null && dcInput.getWarning().length() > 0) {
                        fullDate.addError(dcInput.getWarning());
                    } else {
                        fullDate.addError(T_required_field);
                    }
                if (dcInput.isRepeatable() && !readonly)
                        fullDate.enableAddOperation();
                if ((dcInput.isRepeatable() || dcValues.length > 1) && !readonly)
                        fullDate.enableDeleteOperation();
View Full Code Here

                fullSeries.setHelp(cleanHints(dcInput.getHints()));
                if (dcInput.isRequired())
                        fullSeries.setRequired();
                if (isFieldInError(fieldName))
                    if (dcInput.getWarning() != null && dcInput.getWarning().length() > 0) {
                        fullSeries.addError(dcInput.getWarning());
                    } else {
                        fullSeries.addError(T_required_field);
                    }
                if (dcInput.isRepeatable() && !readonly)
                        fullSeries.enableAddOperation();
View Full Code Here

                        fullSeries.setRequired();
                if (isFieldInError(fieldName))
                    if (dcInput.getWarning() != null && dcInput.getWarning().length() > 0) {
                        fullSeries.addError(dcInput.getWarning());
                    } else {
                        fullSeries.addError(T_required_field);
                    }
                if (dcInput.isRepeatable() && !readonly)
                        fullSeries.enableAddOperation();
                if ((dcInput.isRepeatable() || dcValues.length > 1) && !readonly)
                        fullSeries.enableDeleteOperation();
View Full Code Here

                qualdrop.setHelp(cleanHints(dcInput.getHints()));
                if (dcInput.isRequired())
                        qualdrop.setRequired();
                if (isFieldInError(fieldName))
                    if (dcInput.getWarning() != null && dcInput.getWarning().length() > 0) {
                        qualdrop.addError(dcInput.getWarning());
                    } else {
                        qualdrop.addError(T_required_field);
                    }
                if (dcInput.isRepeatable() && !readonly)
                        qualdrop.enableAddOperation();
View Full Code Here

                        qualdrop.setRequired();
                if (isFieldInError(fieldName))
                    if (dcInput.getWarning() != null && dcInput.getWarning().length() > 0) {
                        qualdrop.addError(dcInput.getWarning());
                    } else {
                        qualdrop.addError(T_required_field);
                    }
                if (dcInput.isRepeatable() && !readonly)
                        qualdrop.enableAddOperation();
                // Update delete based upon the filtered values.
                if ((dcInput.isRepeatable() || dcValues.length > 1) && !readonly)
View Full Code Here

        Composite composite = p.addComposite("composite-2text");
        composite.setLabel("Composite (two text fields)");
        if (help)
          composite.setHelp("I am the help for the entire composite");
        if (error)
          composite.addError("Just the composite is in error");
        text = composite.addText("partA");
        text.setLabel("Part A");
        text.setValue("Value for part A");
        if (help)
          text.setHelp("Part A");
View Full Code Here

                fullName.setHelp(cleanHints(dcInput.getHints()));
                if (dcInput.isRequired())
                        fullName.setRequired();
                if (isFieldInError(fieldName))
                    if (dcInput.getWarning() != null && dcInput.getWarning().length() > 0) {
                        fullName.addError(dcInput.getWarning());
                    } else {
                        fullName.addError(T_required_field);
                    }
                if (dcInput.isRepeatable() && !readonly)
                        fullName.enableAddOperation();
View Full Code Here

                        fullName.setRequired();
                if (isFieldInError(fieldName))
                    if (dcInput.getWarning() != null && dcInput.getWarning().length() > 0) {
                        fullName.addError(dcInput.getWarning());
                    } else {
                        fullName.addError(T_required_field);
                    }
                if (dcInput.isRepeatable() && !readonly)
                        fullName.enableAddOperation();
                if ((dcInput.isRepeatable() || dcValues.length > 1&& !readonly)
                        fullName.enableDeleteOperation();
View Full Code Here

        composite.enableAddOperation();
        composite.enableDeleteOperation();
        if (help)
          composite.setHelp("This field is composed of two text fields, fill them both in.");
        if (error)
          composite.addError("Just the composite is in error.");
        text = composite.addText("firstA");
        if (help)
          text.setHelp("This is helpfull text.");
        text.addInstance().setValue("1, Raw A");
        text.addInstance().setValue("2, Raw A");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.