Package org.opencms.widgets

Examples of org.opencms.widgets.CmsSelectWidgetOption


      CmsXmlContentValueSequence seq = xmlcontent.getValueSequence("Option", locale);
      int count = seq.getElementCount();
      for (int i = 1; i <= count; i++) {
        String value = getValue(VALUE_ELEMENT, i);
        String text = getValue(TEXT_ELEMENT, i);
        CmsSelectWidgetOption option = new CmsSelectWidgetOption(value, false, text);
        options.add(option);
      }
    } catch (CmsException e) {
      CmsSelectWidgetOption option = new CmsSelectWidgetOption("error", true, "Error: Could not load the options from '" + getConfiguration() + "'");
      options.add(option);
    }
   
    LOG.debug("Returning: " + options.toString());
    return options;
View Full Code Here

TOP

Related Classes of org.opencms.widgets.CmsSelectWidgetOption

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.