Package org.jasig.portal.portletpublishing.xml

Examples of org.jasig.portal.portletpublishing.xml.MultiChoicePreferenceInput


     * @param options
     * @param defaultValues
     * @return
     */
    public static Preference createMultiChoicePreference(String name, String label, MultiChoiceDisplay displayType, List<Option> options, List<String> defaultValues) {
        MultiChoicePreferenceInput input = new MultiChoicePreferenceInput();
        input.getDefaults().addAll(defaultValues);
        input.setDisplay(displayType);
        input.getOptions().addAll(options);
       
        Preference pref = new Preference();
        pref.setName(name);
        pref.setLabel(label);
        pref.setPreferenceInput(new JAXBElement<MultiChoicePreferenceInput>(new QName("multi-choice-parameter-input"), MultiChoicePreferenceInput.class, input));
View Full Code Here

TOP

Related Classes of org.jasig.portal.portletpublishing.xml.MultiChoicePreferenceInput

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.