Examples of StyleProperty


Examples of com.volantis.styling.properties.StyleProperty

            element.getStyles().getPropertyValues();
        final StylePropertyDefinitions stylePropertyDefinitions =
            attributePropertyValues.getStylePropertyDefinitions();
        final int count = stylePropertyDefinitions.count();
        for (int i = 0; i < count; i++) {
            final StyleProperty styleProperty =
                stylePropertyDefinitions.getStyleProperty(i);
            if (styleProperty.equals(StylePropertyDetails.DISPLAY)) {
                assertEquals(DisplayKeywords.TABLE_CELL,
                    elementPropertyValues.getComputedValue(styleProperty));
                assertEquals(DisplayKeywords.TABLE_CELL,
                    elementPropertyValues.getSpecifiedValue(styleProperty));
            } else {
View Full Code Here

Examples of com.volantis.styling.properties.StyleProperty

     * @return a PropertyDetailsSet
     */
    public static PropertyDetailsSet getDetailsSet(List properties) {
        List detailsList = new ArrayList();
        for (int i = 0; i < properties.size(); i++) {
            StyleProperty property = (StyleProperty) properties.get(i);
            detailsList.add(property.getStandardDetails());
        }

        return new PropertyDetailsSetImpl(detailsList);
    }
View Full Code Here

Examples of com.volantis.styling.properties.StyleProperty

                    BeanClassDescriptor typeDescriptor = (BeanClassDescriptor)
                            PolicyModel.MODEL_DESCRIPTOR.
                            getTypeDescriptorStrict(StyleProperties.class);

                    while (it.hasNext()) {
                        StyleProperty details = (StyleProperty) it.next();
                        PropertyIdentifier identifier = ThemeModel.
                                getPropertyIdentifierForStyleProperty(details);
                        PropertyDescriptor descriptor =
                                typeDescriptor.getPropertyDescriptor(identifier);
                        propertyDescriptors.add(descriptor);
View Full Code Here

Examples of com.volantis.styling.properties.StyleProperty

         * @param propertyValue The property value to render
         * @return The string representation of the specified value
         */
        private String propertyValueToString(PropertyValue propertyValue) {
            StyleValue value = propertyValue.getValue();
            StyleProperty property = propertyValue.getProperty();

            StringWriter writer = new StringWriter();
            String rendered = "";
            RendererContext context = new RendererContext(
                    writer, CSSStyleSheetRenderer.getSingleton());
View Full Code Here

Examples of com.volantis.styling.properties.StyleProperty

            String stringValue = "";

            if (i == COLUMN_PROPERTY) {
                BeanProxy parent = (BeanProxy) property.getParentProxy();
                PropertyIdentifier identifier = parent.getPropertyForProxy(property);
                StyleProperty styleProperty = ThemeModel.getStylePropertyForPropertyIdentifier(identifier);
                stringValue = styleProperty.getName();
                stringValue = EclipseCommonMessages.getString("PolicyName." + stringValue);
            } else if (i == COLUMN_VALUE) {
                PropertyValue propertyValue = (PropertyValue) property.getModelObject();
                stringValue = propertyValueToString(propertyValue);
            }
View Full Code Here

Examples of com.volantis.styling.properties.StyleProperty

        return action;
    }

    public IterationAction next(PropertyValue subsetValue) {

        StyleProperty property = subsetValue.getProperty();
        PropertyValue propertyValue = properties.getPropertyValue(property);
        if (subsetValue.equals(propertyValue)) {
            // the property is in both sets with the same
            // value. In this case, leave the subset
            // as it is.
View Full Code Here

Examples of com.volantis.styling.properties.StyleProperty

            // The system font is set so make sure that all the other font
            // properties are set with equal or greater priority.
            for (int i = 0; i < UNKNOWN_FONT_PROPERTIES.length; i++) {
                PropertyValue value = UNKNOWN_FONT_PROPERTIES[i];
                StyleProperty property = value.getProperty();

                PropertyValue propertyValue = properties.getPropertyValue(
                        property);
                if (propertyValue == null ||
                        systemFontPriority.isGreaterThan(
View Full Code Here

Examples of com.volantis.styling.properties.StyleProperty

        // have no effect so clear them. The only property left is color so
        // if that cannot be thrown away then create a shorthand containing
        // only the color.
        if (image == null || image == BackgroundImageKeywords.NONE) {
            for (int i = 0; i < IMAGE_RELATED.length; i++) {
                StyleProperty property = IMAGE_RELATED[i];
                if (supportedProperties.contains(property)) {
                    inputValues.setComputedValue(property, OptimizerHelper.ANY);
                }
            }
        }
View Full Code Here

Examples of com.volantis.styling.properties.StyleProperty

     */
    private void clearProperties(
            MutableStylePropertySet requiredForIndividual,
            MutableStylePropertySet requiredForShorthand) {
        for (int i = 0; i < group.length; i++) {
            StyleProperty property = group[i];
            requiredForShorthand.remove(property);
            requiredForIndividual.remove(property);
        }
    }
View Full Code Here

Examples of com.volantis.styling.properties.StyleProperty

        // If any of the edge style properties are set to none, or any of
        // the widths are set to 0 then the value of any of the other properties
        // for the same edge are irrelevant so mark them as being able to take
        // any value.
        for (int i = 0; i < PropertyGroups.EDGE_COUNT; i++) {
            StyleProperty property;
            StyleValue value;
            boolean ignoreColor = false;
            boolean ignoreStyle = false;
            boolean ignoreWidth = false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.