Package dk.i2m.drupal.field

Examples of dk.i2m.drupal.field.Text


        this.name = name;
    }

    public TextWrapper(String name, String value) {
        this(name);
        texts.add(new Text(null, value, null));
    }
View Full Code Here


        texts.add(new Text(null, value, null));
    }

    public TextWrapper(String name, String summary, String value, String format) {
        this(name);
        texts.add(new Text(summary, value, format));
    }
View Full Code Here

    }

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

            if (text.getSummary() != null) {
                nvps.add(new BasicNameValuePair(name + "[" + language + "][" + i
                        + "][summary]", text.getSummary()));
            }

            if (text.getValue() != null) {
                nvps.add(new BasicNameValuePair(name + "[" + language + "][" + i
                        + "][value]", text.getValue()));
            }

            if (text.getFormat() != null) {
                nvps.add(new BasicNameValuePair(name + "[" + language + "][" + i
                        + "][format]", text.getFormat()));
            }
        }

        return nvps;
    }
View Full Code Here

TOP

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

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.