Package cn.com.elements.singletag.options

Examples of cn.com.elements.singletag.options.OptionElementTag


        selectElement.setId(StringUtil.joinString(_SPLIT_DO, parentId, e.id()));
        String[] values = e.source().value();
        if (values != null && values.length > 0) {
            int idx = 0;
            for (String d : values) {
                OptionElementTag optionElement = new OptionElementTag();
                optionElement.setDisplay(Element.LabelContent.getLabelContent(e.source().display()[idx++]));
                optionElement.setValue(d);
                // 设定option被选择
                if (d.equals(selectedValue)) {
                    optionElement.setSelected(true);
                }
                selectElement.addChildrenTag(optionElement);
            }
        }
        // 作为异常报错的提示标示
View Full Code Here

TOP

Related Classes of cn.com.elements.singletag.options.OptionElementTag

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.