Package org.openengsb.ui.common.editor.fields

Examples of org.openengsb.ui.common.editor.fields.CheckboxField


     * creates a single EditorField for the given attribute
     */
    public static AbstractField<?> createEditorField(String id, IModel<String> model,
            final AttributeDefinition attribute, boolean editable) {
        if (attribute.isBoolean()) {
            return new CheckboxField(id, model, attribute, new BooleanFieldValidator(attribute));
        }
        StringFieldValidator validator = new StringFieldValidator(attribute);
        if (!attribute.getOptions().isEmpty()) {
            return new DropdownField(id, model, attribute, validator);
        } else if (attribute.isPassword()) {
View Full Code Here

TOP

Related Classes of org.openengsb.ui.common.editor.fields.CheckboxField

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.