Package com.volantis.mcs.themes.properties

Examples of com.volantis.mcs.themes.properties.AllowableKeywords


        // notify listeners of the change
        valueChanged();
    }

    private AllowableKeywords getAllowableKeywords() {
        AllowableKeywords allowableKeywords = null;
        if (propertyName != null) {
            allowableKeywords = ALLOWABLE_KEYWORDS_ACCESSOR
                    .getAllowableKeywords(propertyName);
        }
        return allowableKeywords;
View Full Code Here


            editableCombo.add(INHERIT_KEYWORD, 0);
        }
        // if the keyword type is supported then we have to add all the
        // keywords to the editable combo
        if (valueTypes.contains(StyleValueType.KEYWORD)) {
            AllowableKeywords allowableKeywords = getAllowableKeywords();
            // add the keywords to the combo. Note: keywords are not localized
            // as the are part of the CSS spec.
            if (allowableKeywords != null) {
                List keywords = allowableKeywords.getKeywords();
                for (int i = 0; i < keywords.size(); i++) {
                    StyleKeyword keyword = (StyleKeyword) keywords.get(i);
                    if (!keyword.isInternal()) {
                        editableCombo.add(keyword.getName());
                    }
View Full Code Here

    private void initialisePropertyKeywords(InternalDevice device,
            DefaultCSSProperty cssProperty) {

        StyleProperty property = cssProperty.getStyleProperty();

        final AllowableKeywords allowableKeywords =
                property.getStandardDetails().getAllowableKeywords();
        if (allowableKeywords != null) {
            List keywords = allowableKeywords.getKeywords();
            for (int i = 0; i < keywords.size(); i++) {
                StyleKeyword keyword = (StyleKeyword) keywords.get(i);

                final String externalName =
                            CSS_NAME_MAPPER.getExternalString(property);
View Full Code Here

    /**
     * Initialize a new instance.
     */
    protected DisplayKeywordMapper() {
        // Add all the default mappings...
        super(new AllowableKeywords(
                DisplayKeywords.getDefaultInstance().getKeywords()));
        // ...then overwrite MCS_MARQUEE with the runtime mapping.
        addMapping(DisplayKeywords.MCS_MARQUEE, "-wap-marquee");
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.themes.properties.AllowableKeywords

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.