Package com.volantis.mcs.themes

Examples of com.volantis.mcs.themes.TypeSelector


        if (element != null && element.length() > 0) {
            ElementSelector elementSelector = null;
            if (ThemeConstants.UNIVERSAL_SELECTOR.equals(element)) {
                elementSelector = MODEL_FACTORY.createUniversalSelector();
            } else {
                TypeSelector typeSelector =
                        MODEL_FACTORY.createTypeSelector();
                typeSelector.setType(element);
                elementSelector = typeSelector;
            }
            if (elementSelector != null) {
                if (namespace != null && namespace.length() > 0) {
                    elementSelector.setNamespacePrefix(namespace);
View Full Code Here


     *
     * @param type the name of the type selector.
     */
    public void setTypeSelector(String type) {

        TypeSelector selector = themeFactory.createTypeSelector();
        selector.setType(type);
        selectorSequence.addSelector(selector);
    }
View Full Code Here

    private SelectorSequence createSelectorSequence(String type) {
        return createSelectorSequence(null, type);
    }

    private SelectorSequence createSelectorSequence(String prefix, String type) {
        TypeSelector typeSelector = themeModelFactory.createTypeSelector();
        typeSelector.setType(type);
        typeSelector.setNamespacePrefix(prefix);

        return createSelectorSequence(typeSelector);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.themes.TypeSelector

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.