Examples of WebPageContext


Examples of com.psddev.dari.util.WebPageContext

    /**
     * Sets the source object, which may be either a URL or a Dari
     * object.
     */
    public void setSrc(Object src) {
        WebPageContext wp = new WebPageContext(pageContext);

        if (src instanceof String ||
                src instanceof URI ||
                src instanceof URL) {

            String path = JspUtils.resolvePath(wp.getServletContext(), wp.getRequest(), src.toString());
            StorageItem pathItem;
            if (path.startsWith("/")) {
                pathItem = StorageItem.Static.createUrl(JspUtils.getAbsoluteUrl(wp.getRequest(), path));
            } else {
                pathItem = StorageItem.Static.createUrl(path);
            }
            tagBuilder.setItem(pathItem);

View Full Code Here

Examples of com.psddev.dari.util.WebPageContext

        }
        if (imageEditor == null) {
            imageEditor = ImageEditor.Static.getDefault();
        }

        Map<String, String> attributes = getAttributes(new WebPageContext(pageContext),
                object, field, imageEditor, standardImageSize, width, height, null, null, null, null);
        return attributes.get("src");
    }
View Full Code Here

Examples of com.psddev.dari.util.WebPageContext

                Integer height,
                CropOption cropOption,
                ResizeOption resizeOption,
                String srcAttr,
                Map<String, String> dynamicAttributes) {
            return getHtml(new WebPageContext(pageContext),
                    object, field, editor, standardSize, width, height, cropOption, resizeOption, srcAttr, dynamicAttributes);
        }
View Full Code Here

Examples of com.psddev.dari.util.WebPageContext

                Object object,
                String field,
                ImageEditor editor,
                String size) {

            return makeUrlFromStandardImageSize(new WebPageContext(pageContext), object, field, editor, size);
        }
View Full Code Here

Examples of com.psddev.dari.util.WebPageContext

                ImageEditor editor,
                Integer width,
                Integer height,
                CropOption cropOption,
                ResizeOption resizeOption) {
            return makeUrlFromOptions(new WebPageContext(pageContext), object, field, editor, width, height, cropOption, resizeOption);
        }
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.