Package com.volantis.mcs.themes.types

Examples of com.volantis.mcs.themes.types.StyleType


        List otherControls = new ArrayList();
        otherControls.add(label);
        otherControls.add(divider);

        // Find the pair type component of the supported structure.
        StyleType type = styleProperty.getStandardDetails().getSupportedStructure();
        StylePairType pairType = null;
        if (type instanceof StylePairType) {
            pairType = (StylePairType) type;
        } else if (type instanceof StyleChoiceType) {
            StyleChoiceType choice = (StyleChoiceType) type;
            List types = choice.getTypes();
            Iterator it = types.iterator();
            while (pairType == null && it.hasNext()) {
                StyleType next = (StyleType) it.next();
                if (next instanceof StylePairType) {
                    pairType = (StylePairType) next;
                }
            }
        }
View Full Code Here


        // second is only enabled if representing a StyleFraction. For
        // example, mcs-marquee-speed can be a length, keyword, fraction or
        // inherit. The first editor can display either a length, keyword,
        // inherit or the numerator of the fraction, but the second can
        // only display the denominator of the fraction.
        StyleType type = styleProperty.getStandardDetails().
                getSupportedStructure();
        StyleFractionType fractionType = null;
        if (type instanceof StyleFractionType) {
            fractionType = (StyleFractionType) type;
        } else if (type instanceof StyleChoiceType) {
            StyleChoiceType choice = (StyleChoiceType) type;
            List types = choice.getTypes();
            Iterator it = types.iterator();
            while (fractionType == null && it.hasNext()) {
                StyleType next = (StyleType) it.next();
                if (next instanceof StyleFractionType) {
                    fractionType = (StyleFractionType) next;
                }
            }
        }
View Full Code Here

        GridData data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
        label.setLayoutData(data);

        StylePropertyBrowseAction browseAction = StylePropertyMetadata.getBrowseAction(styleProperty);

        StyleType supportedStructure = styleProperty.getStandardDetails().
                getSupportedStructure();
        final StyleValueEditor styleEditor = new StyleValueEditor(this,
                SWT.NONE, styleProperty, supportedStructure, true,
                browseAction, context);
View Full Code Here

            // Javadoc inherited
            public void visitStyleChoiceType(StyleChoiceType type) {
                List choices = type.getTypes();
                Iterator it = choices.iterator();
                while (it.hasNext()) {
                    StyleType optionType = (StyleType) it.next();
                    optionType.accept(this);
                }
            }

            // Javadoc inherited
            public void visitStyleOrderedSetType(StyleOrderedSetType type) {
View Full Code Here

TOP

Related Classes of com.volantis.mcs.themes.types.StyleType

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.