Package org.apache.empire.commons

Examples of org.apache.empire.commons.OptionEntry


  private void addSelectItems(UIComponent component) {
    Options options = getRecord().getFieldOptions(getColumn());
    if (options != null) {
      Iterator<OptionEntry> optionsIterator = options.iterator();
      while (optionsIterator.hasNext()) {
        OptionEntry optionEntry = optionsIterator.next();
        UISelectItem selectItem = new UISelectItem();
        selectItem.setItemValue(optionEntry.getValueString());
        selectItem.setItemLabel(FacesUtils.getMessageForKey(optionEntry
            .getText()));
        component.getChildren().add(selectItem);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.empire.commons.OptionEntry

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.