Package org.xhtmlrenderer.css.sheet

Examples of org.xhtmlrenderer.css.sheet.PropertyDeclaration


                    checkValidity(cssName, ALLOWED, ident);
                }
            }
           
            return Collections.singletonList(
                    new PropertyDeclaration(cssName, value, important, origin));
        }       
View Full Code Here


    private void retrievePageMetadata(LayoutContext c) {
        List props = getPageInfo().getXMPPropertyList();
        if (props != null && props.size() > 0)
        {
            for (Iterator i = props.iterator(); i.hasNext(); ) {
                PropertyDeclaration decl = (PropertyDeclaration)i.next();
                if (decl.getCSSName() == CSSName.CONTENT) {
                    PropertyValue value = (PropertyValue)decl.getValue();
                    List values = value.getValues();
                    if (values.size() == 1) {
                        PropertyValue funcVal = (PropertyValue)values.get(0);
                        if (funcVal.getPropertyValueType() == PropertyValue.VALUE_TYPE_FUNCTION) {
                            FSFunction func = funcVal.getFunction();
View Full Code Here

                if (value.getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT) {
                    IdentValue ident = checkIdent(cssName, value);
                    checkValidity(cssName, BORDER_WIDTHS, ident);
                   
                    return Collections.singletonList(
                            new PropertyDeclaration(
                                    cssName, Conversions.getBorderWidth(ident.toString()), important, origin));
                } else {
                    if (value.getFloatValue() < 0.0f) {
                        throw new CSSParseException(cssName + " may not be negative", -1);
                    }
                }
            }
           
            return Collections.singletonList(
                    new PropertyDeclaration(cssName, value, important, origin));
        }       
View Full Code Here

                    throw new CSSParseException(cssName + " may not be negative", -1);
                }
            }
           
            return Collections.singletonList(
                    new PropertyDeclaration(cssName, value, important, origin));

        }
View Full Code Here

            if (props.size() != 1) {
                throw new CSSParseException(
                        "Builder created " + props.size() + "properties, expected 1", getCurrentLine());
            }

            PropertyDeclaration decl = (PropertyDeclaration)props.get(0);

            return (PropertyValue)decl.getValue();
        } catch (IOException e) {
            // "Shouldn't" happen
            throw new RuntimeException(e.getMessage(), e);
        } catch (CSSParseException e) {
            error(e, "property value", false);
View Full Code Here

                    throw new CSSParseException(cssName + " may not be negative", -1);
                }
            }
           
            return Collections.singletonList(
                    new PropertyDeclaration(cssName, value, important, origin));

        }
View Full Code Here

                    throw new CSSParseException(cssName + " may not be negative", -1);
                }
            }
           
            return Collections.singletonList(
                    new PropertyDeclaration(cssName, value, important, origin));

       
View Full Code Here

                    throw new CSSParseException("colspan/rowspan must be greater than zero", -1);
                }
            }
           
            return Collections.singletonList(
                    new PropertyDeclaration(cssName, value, important, origin));
        }
View Full Code Here

                    throw new CSSParseException(cssName + " may not be negative", -1);
                }               
            }
           
            return Collections.singletonList(
                    new PropertyDeclaration(cssName, value, important, origin));

        }
View Full Code Here

                    throw new CSSParseException(cssName + " may not be negative", -1);
                }
            }
           
            return Collections.singletonList(
                    new PropertyDeclaration(cssName, value, important, origin));

       
View Full Code Here

TOP

Related Classes of org.xhtmlrenderer.css.sheet.PropertyDeclaration

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.