Package com.volantis.styling.values

Examples of com.volantis.styling.values.PropertyValues


        if (!supportsImageButtons) {
            // Set src to null to force actionStyle to button later
            return null;
        }

        PropertyValues properties = styles.getPropertyValues();

        // Try the mariner-image property first, if that is not set or it's set
        // to none, then try the mariner-form-action-image property.
        StyleValue styleValue = properties.getComputedValue(
                StylePropertyDetails.MCS_IMAGE);

        if (styleValue == null || styleValue == MCSImageKeywords.NONE) {
            styleValue = properties.getComputedValue(
                    StylePropertyDetails.MCS_FORM_ACTION_IMAGE);
            if (styleValue == null) {
                return null;
            }
        }
View Full Code Here


            // Initialise the action style.
            StyleValue actionStyle;
            if (alwaysCheckForImage) {
                actionStyle = MCSFormActionStyleKeywords.IMAGE;
            } else {
                PropertyValues propertyValues = styles.getPropertyValues();
                actionStyle = propertyValues.getComputedValue(
                        StylePropertyDetails.MCS_FORM_ACTION_STYLE);
            }

            if (actionStyle == MCSFormActionStyleKeywords.DEFAULT
                    || actionStyle == MCSFormActionStyleKeywords.LINK) {
View Full Code Here

         */
        private void initialise(XFSelectAttributes attributes) {
            this.selectAttributes = attributes;

            Styles styles = attributes.getStyles();
            PropertyValues propertyValues = styles.getPropertyValues();
            StyleValue styleValue;

            styleValue = propertyValues.getComputedValue(
                    StylePropertyDetails.MCS_SELECTION_LIST_OPTION_LAYOUT);
            this.alignCaptionRight =
                    (styleValue == MCSSelectionListOptionLayoutKeywords.CONTROL_FIRST);

            styleValue = propertyValues.getComputedValue(
                    StylePropertyDetails.MCS_MENU_ORIENTATION);
            this.verticalOptions =
                    (styleValue == MCSMenuOrientationKeywords.VERTICAL);

            optionCountByContainer = new HashMap();
View Full Code Here

     */
    private void addModeAttribute(Element element,
                                    MCSAttributes attributes) {

        Styles styles = attributes.getStyles();
        PropertyValues propertyValues = styles.getPropertyValues();

        // Check whether a no-wrapping whitespace has been specified in a
        // theme or style class.
        StyleValue value = propertyValues.getComputedValue(
                StylePropertyDetails.WHITE_SPACE);
        if (value == WhiteSpaceKeywords.NOWRAP) {
            element.setAttribute("mode", "nowrap");
        }
    }
View Full Code Here

                h.match(table, t, "cellspacing") &&
                h.match(table, t, "cellpadding") &&
                ((width == null) || "100%".equals(width));

        if (canOptimize) {
            PropertyValues outerProps = null;
            PropertyValues innerProps = null;
            StyleValue styleWidth = null;
            if (t.getStyles() != null) {
                outerProps = t.getStyles().getPropertyValues();
            }
            if (table.getStyles() != null) {
                innerProps = table.getStyles().getPropertyValues();
                styleWidth = innerProps.getComputedValue(
                        StylePropertyDetails.WIDTH);
            }
           
            canOptimize = canOptimize &&
                    (innerProps == null || (styleWidth == null ||
View Full Code Here

     */
    protected void addBodyAttributes (Element element,
            BodyAttributes attributes) throws ProtocolException {

        Styles styles = attributes.getStyles();
        PropertyValues propertyValues = styles.getPropertyValues();

        // Add the super class attributes.
        super.addBodyAttributes (element, attributes);

        StyleValue value = propertyValues.getComputedValue(
                StylePropertyDetails.BACKGROUND_REPEAT);
        if (value == BackgroundRepeatKeywords.REPEAT_Y) {
            element.setAttribute("nohtilebg", "nohtilebg");
        } else if (value == BackgroundRepeatKeywords.REPEAT_X) {
            element.setAttribute("novtilebg", "novtilebg");
View Full Code Here

        addButtonAttribute(element, attributes);
    }

    private void addButtonAttribute(Element element, MCSAttributes attributes) {
        Styles styles = attributes.getStyles();
        PropertyValues propertyValues = styles.getPropertyValues();
        StyleValue value = propertyValues.getComputedValue(
                StylePropertyDetails.MCS_LINK_STYLE);

        if (value == MCSLinkStyleKeywords.BUTTON) {
            element.setAttribute("button", "button");
        }
View Full Code Here

        if (rendering != PaneRendering.USE_TABLE) {

            // if there are any explicitly set styles on the pane then we
            // should not DO_NOTHING because that would result in these styles
            // being lost.
            PropertyValues propertyValues = attributes.getStyles().
                    getPropertyValues();
            if (propertyValues != null &&
                    propertyValues.hasExplicitlySpecified()) {
                rendering = PaneRendering.USE_ENCLOSING_TABLE_CELL;
            }

            rendering = checkPaneRendering(attributes, element, rendering);
        }
View Full Code Here

        FragmentLinkRenderer renderer = null;

        // If the style for this fragment has a "mariner link" style value
        // of "numeric shortcut"...
        Styles styles = attrs.getStyles();
        PropertyValues propertyValues = styles.getPropertyValues();
        StyleValue value = propertyValues.getComputedValue(
                StylePropertyDetails.MCS_LINK_STYLE);
        if (value == MCSLinkStyleKeywords.NUMERIC_SHORTCUT) {
            // Then use the numeric-shortcut fragment link renderer.
            if (logger.isDebugEnabled()) {
                logger.debug("Using numeric-shortcut fragment link rendering");
View Full Code Here

        // Add the super classes attributes first.
        super.addCardAttributes(element, attributes);

        Styles styles = attributes.getStyles();
        PropertyValues propertyValues = styles.getPropertyValues();
        StyleValue overflow = propertyValues.getComputedValue(
                StylePropertyDetails.OVERFLOW);
        if (overflow == OverflowKeywords.SCROLL) {
            element.setAttribute("scroll", "true");
        } else {
            element.setAttribute("scroll", "false");
View Full Code Here

TOP

Related Classes of com.volantis.styling.values.PropertyValues

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.