Package at.reppeitsolutions.formbuilder.components.helper

Examples of at.reppeitsolutions.formbuilder.components.helper.FormBuilderItemDeleteConstraint


                        Logger.getLogger(FormBuilderInternalRenderer.class.getName()).log(Level.SEVERE, null, ex);
                    }
                    break;
                case "deleteconstraint":
                    try {
                        FormBuilderItemDeleteConstraint deleteConstraint = mapper.readValue(formContentString, FormBuilderItemDeleteConstraint.class);
                        for (FormBuilderItemBase tmpItem : formBuilder.getForm().getItems()) {
                            if (tmpItem.getId().equals(deleteConstraint.getItemUuid())) {
                                boolean deleted = false;
                                for (Iterator<Constraint> it = tmpItem.getConstraints().iterator(); it.hasNext();) {
                                    Constraint constraint = it.next();
                                    if (constraint.hashCode() == Integer.parseInt(deleteConstraint.getHashCode())) {
                                        it.remove();
                                        tmpItem.getProperties().setMaximise(Boolean.TRUE);
                                        deleted = true;
                                        break;
                                    }
View Full Code Here

TOP

Related Classes of at.reppeitsolutions.formbuilder.components.helper.FormBuilderItemDeleteConstraint

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.