Package org.jasig.portal.portletpublishing.xml

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


    public static Preference createSingleTextPreference(String name, String label, TextDisplay displayType, String defaultValue) {
        SingleTextPreferenceInput input = new SingleTextPreferenceInput();
        input.setDefault(defaultValue);
        input.setDisplay(displayType);
       
        Preference pref = new Preference();
        pref.setName(name);
        pref.setLabel(label);
        pref.setPreferenceInput(new JAXBElement<SingleTextPreferenceInput>(new QName("single-text-parameter-input"), SingleTextPreferenceInput.class, input));
    
        return pref;
    }
View Full Code Here


        SingleChoicePreferenceInput input = new SingleChoicePreferenceInput();
        input.setDefault(defaultValue);
        input.setDisplay(displayType);
        input.getOptions().addAll(options);
       
        Preference pref = new Preference();
        pref.setName(name);
        pref.setLabel(label);
        pref.setPreferenceInput(new JAXBElement<SingleChoicePreferenceInput>(new QName("single-choice-parameter-input"), SingleChoicePreferenceInput.class, input));
    
        return pref;
    }
View Full Code Here

    public static Preference createMultiTextPreference(String name, String label, TextDisplay displayType, List<String> defaultValues) {
        MultiTextPreferenceInput input = new MultiTextPreferenceInput();
        input.getDefaults().addAll(defaultValues);
        input.setDisplay(displayType);
       
        Preference pref = new Preference();
        pref.setName(name);
        pref.setLabel(label);
        pref.setPreferenceInput(new JAXBElement<MultiTextPreferenceInput>(new QName("multi-text-parameter-input"), MultiTextPreferenceInput.class, input));
    
        return pref;
    }
View Full Code Here

        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));
    
        return pref;
    }
View Full Code Here

TOP

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

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.