Package at.reppeitsolutions.formbuilder.model

Examples of at.reppeitsolutions.formbuilder.model.Constraint


    protected void addSpecialProperty(String property, SPECIALPROPERTY special) {
        specialProperties.put(property, special);
    }

    public void addConstraintClient(ConstraintClient constraintClient, WorkflowState workflowState, ConstraintType constraintType) {
        Constraint constraint = new Constraint();
        constraint.setFormBuilderItem(this);
        if (constraintClient != null) {
            constraint.setConstraintClient(constraintClient);
        }
        if (workflowState != null) {
            constraint.setWorkflowState(workflowState);
        }
        constraint.setConstraintType(constraintType);

        boolean alreadyAdded = false;
        for (Constraint tmpConstraint : constraints) {
            if (tmpConstraint.equals(constraint)) {
                alreadyAdded = true;
View Full Code Here


                        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.model.Constraint

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.