Package org.foray.fotree.fo.prop

Examples of org.foray.fotree.fo.prop.PdPageBreakBefore


        }
        case PAGE_BREAK_AFTER: {
            return new PdPageBreakAfter(fobj, propertyFullName, attributeValue);
        }
        case PAGE_BREAK_BEFORE: {
            return new PdPageBreakBefore(fobj, propertyFullName,
                    attributeValue);
        }
        case PAGE_BREAK_INSIDE: {
            return new PdPageBreakInside(fobj, propertyFullName,
                    attributeValue);
View Full Code Here


        if (property == null) {
            return AbstractKeep.getValueNoInstance(context,
                    FoProperty.KEEP_WITH_PREVIOUS,
                    subProperty, fobj);
        }
        final PdPageBreakBefore enumProperty = (PdPageBreakBefore) getProperty(
                FoProperty.PAGE_BREAK_BEFORE);
        if (enumProperty != null) {
            switch(enumProperty.getValue(context, fobj)) {
            case AUTO: {
                return Integer.MIN_VALUE;
            }
            case ALWAYS: {
                return Integer.MIN_VALUE;
View Full Code Here

        final PdBreakBefore property = (PdBreakBefore) getProperty(
                FoProperty.BREAK_BEFORE);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        final PdPageBreakBefore pageBreakBefore =
                (PdPageBreakBefore) getProperty(FoProperty.PAGE_BREAK_BEFORE);
        if (pageBreakBefore != null) {
            switch(pageBreakBefore.getValue(context, fobj)) {
            case AUTO: {
                return FoValue.AUTO;
            }
            case ALWAYS: {
                return FoValue.PAGE;
View Full Code Here

     * issues.
     * @return The page-break-before property.
     */
    public FoValue traitPageBreakBefore(final FObj fobj,
            final FoContext context) {
        final PdPageBreakBefore property = (PdPageBreakBefore) getProperty(
                FoProperty.PAGE_BREAK_BEFORE);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        return PdPageBreakBefore.getValueNoInstance();
    }
View Full Code Here

TOP

Related Classes of org.foray.fotree.fo.prop.PdPageBreakBefore

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.