All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.takari.bpm.model.form.DefaultFormFields Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package io.takari.bpm.model.form;

import io.takari.bpm.model.form.FormField.Option;

/**
 * Standard form field types and options.
 */
public final class DefaultFormFields {

    public static final class StringField {

        public static final String TYPE = "string";
        public static final Option PATTERN = FormField.registerOption(TYPE, "pattern", String.class);
    }

    public static final class IntegerField {

        public static final String TYPE = "int";
        public static final Option MIN = FormField.registerOption(TYPE, "min", Long.class);
        public static final Option MAX = FormField.registerOption(TYPE, "max", Long.class);
    }

    public static final class DecimalField {

        public static final String TYPE = "decimal";
        public static final Option MIN = FormField.registerOption(TYPE, "min", Double.class);
        public static final Option MAX = FormField.registerOption(TYPE, "max", Double.class);
    }

    public static final class BooleanField {

        public static final String TYPE = "boolean";
    }

    private DefaultFormFields() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy