Package dk.i2m.drupal.field

Examples of dk.i2m.drupal.field.Option


        this.name = name;
    }

    public OptionWrapper(String name, Boolean value) {
        this(name);
        options.add(new Option(value));
    }
View Full Code Here


    }

    @Override
    public Set<NameValuePair> setup(String language, Set<NameValuePair> nvps) {
        for (int i = 0; i < options.size(); i++) {
            Option option = options.get(i);

            if (option.getValue() != null) {
                nvps.add(new BasicNameValuePair(name + "[" + language + "]"
                        + "["
                        + i + "]", (option.getValue() ? "1" : "0")));
            }
        }

        return nvps;
    }
View Full Code Here

TOP

Related Classes of dk.i2m.drupal.field.Option

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.