Package org.apache.beehive.netui.tags.html

Examples of org.apache.beehive.netui.tags.html.Html


     * @param req
     * @return String
     */
    public static String getAmp(ServletRequest req)
    {
        Html html = (Html) req.getAttribute(Html.HTML_TAG_ID);

        // the default is html 4.0
        int renderingType = HTML_RENDERING;
        if (html != null) {
            renderingType = html.getTargetDocumentType();
        }

        // pick the map of renderers
        return (renderingType == XHTML_RENDERING) ? "&" : "&";
    }
View Full Code Here


            Integer reqRender = (Integer) req.getAttribute(Html.DOC_TYPE_OVERRIDE);
            if (reqRender != null) {
                renderingType = ((Integer) reqRender).intValue();
            }
            else {
                Html html = (Html) req.getAttribute(Html.HTML_TAG_ID);
                // the default is html 4.0
                if (html != null) {
                    renderingType = html.getTargetDocumentType();
                }
            }

            // pick the map of renderers
            HashMap h = null;
View Full Code Here

         * @param req
         * @return boolean
         */
        public static boolean isXHTML(ServletRequest req)
        {
            Html html = (Html) req.getAttribute(Html.HTML_TAG_ID);

            // the default is html 4.0
            int renderingType = _defaultDocType;
            if (html != null) {
                renderingType = html.getTargetDocumentType();
            }

            return (renderingType == XHTML_RENDERING);
        }
View Full Code Here

         * @param req
         * @return ConstantRendering
         */
        public static ConstantRendering getConstantRendering(ServletRequest req)
        {
            Html html = (Html) req.getAttribute(Html.HTML_TAG_ID);

            if (_htmlConstants == null) {
                _htmlConstants = ConstantRendering.getRendering(HTML_RENDERING);
                _xhtmlConstants = ConstantRendering.getRendering(XHTML_RENDERING);
            }

            // the default is html 4.0
            int renderingType = TagRenderingBase.getDefaultDocType();
            if (html != null) {
                renderingType = html.getTargetDocumentType();
            }
            return (renderingType == XHTML_RENDERING) ? _xhtmlConstants : _htmlConstants;

        }
View Full Code Here

     * @param req
     * @return String
     */
    public static String getAmp(ServletRequest req)
    {
        Html html = (Html) req.getAttribute(Html.HTML_TAG_ID);

        // the default is html 4.0
        int renderingType = HTML_RENDERING;
        if (html != null) {
            renderingType = html.getTargetDocumentType();
        }

        // pick the map of renderers
        return (renderingType == XHTML_RENDERING) ? "&" : "&";
    }
View Full Code Here

            Integer reqRender = (Integer) req.getAttribute(Html.DOC_TYPE_OVERRIDE);
            if (reqRender != null) {
                renderingType = ((Integer) reqRender).intValue();
            }
            else {
                Html html = (Html) req.getAttribute(Html.HTML_TAG_ID);
                // the default is html 4.0
                if (html != null) {
                    renderingType = html.getTargetDocumentType();
                }
            }

            // pick the map of renderers
            HashMap h = null;
View Full Code Here

         * @param req
         * @return boolean
         */
        public static boolean isXHTML(ServletRequest req)
        {
            Html html = (Html) req.getAttribute(Html.HTML_TAG_ID);

            // the default is html 4.0
            int renderingType = _defaultDocType;
            if (html != null) {
                renderingType = html.getTargetDocumentType();
            }

            return (renderingType == XHTML_RENDERING);
        }
View Full Code Here

         * @param req
         * @return ConstantRendering
         */
        public static ConstantRendering getConstantRendering(ServletRequest req)
        {
            Html html = (Html) req.getAttribute(Html.HTML_TAG_ID);

            if (_htmlConstants == null) {
                _htmlConstants = ConstantRendering.getRendering(HTML_RENDERING);
                _xhtmlConstants = ConstantRendering.getRendering(XHTML_RENDERING);
            }

            // the default is html 4.0
            int renderingType = TagRenderingBase.getDefaultDocType();
            if (html != null) {
                renderingType = html.getTargetDocumentType();
            }
            return (renderingType == XHTML_RENDERING) ? _xhtmlConstants : _htmlConstants;

        }
View Full Code Here

     * This method will return the scriptReporter that is represented by the HTML tag.
     * @return IScriptReporter
     */
    protected IScriptReporter getHtmlTag(ServletRequest req)
    {
        Html html = (Html) req.getAttribute(Html.HTML_TAG_ID);
        if (html != null && html instanceof IScriptReporter)
            return (IScriptReporter) html;
        return null;
    }
View Full Code Here

     * This method will return the scriptReporter that is represented by the HTML tag.
     * @return IScriptReporter
     */
    protected IScriptReporter getHtmlTag(ServletRequest req)
    {
        Html html = (Html) req.getAttribute(Html.HTML_TAG_ID);
        if (html != null && html instanceof IScriptReporter)
            return (IScriptReporter) html;
        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.tags.html.Html

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.