Package org.apache.beehive.netui.util.config.bean

Examples of org.apache.beehive.netui.util.config.bean.JspTagConfig


            PageFlowConfig pfConfig = parsePfConfig(document);
            PageFlowFactoriesConfig pfFactoriesConfig = parsePfFactoriesConfig(document);
            SharedFlowRefConfig[] sharedFlowRefConfigs = parseSharedFlowRefConfigs(document);
            RequestInterceptorsConfig requestInterceptorsConfig = parseRequestInterceptorsConfig(document);

            JspTagConfig jspTagConfig = parseJspTagConfig(document);
            ExpressionLanguagesConfig elConfig = parseExpressionLanguageConfig(document);
            TypeConverterConfig[] typeConvertersConfig = parseTypeConvertersConfig(document);
            UrlConfig urlConfig = parseUrlConfig(document);
            IteratorFactoryConfig[] iteratorFactories = parseIteratorFactoryConfig(document);
            PrefixHandlerConfig[] prefixHandlers = parsePrefixHandlerConfig(document);
View Full Code Here


        String tmp = null;
        Element elem = DomUtils.getChildElementByName(document.getDocumentElement(), "jsp-tag-config");

        if(elem == null)
            return new JspTagConfig();

        tmp = DomUtils.getChildElementText(elem, "doctype");
        if(tmp != null) {
            if(tmp.equals("html4-loose"))
                docType = DocType.HTML4_LOOSE;
            else if(tmp.equals("html4-loose-quirks"))
                docType = DocType.HTML4_LOOSE_QUIRKS;
            else if(tmp.equals("xhtml1-transitional"))
                docType = DocType.XHTML1_TRANSITIONAL;
        }

        tmp = DomUtils.getChildElementText(elem, "id-javascript");
        if(tmp != null) {
            if(tmp.equals("default"))
                idJavascript = IdJavascript.DEFAULT;
            else if(tmp.equals("legacy"))
                idJavascript = IdJavascript.LEGACY;
            else if(tmp.equals("legacyOnly"))
                idJavascript = IdJavascript.LEGACY_ONLY;
        }

        treeImageLocation = DomUtils.getChildElementText(elem, "tree-image-location");

        return new JspTagConfig(docType, idJavascript, treeImageLocation);
    }
View Full Code Here

     * @return the default location of the tree images.
     */
    public static String getTreeImageLocation()
    {
        if (defaultTreeImageLocation == null) {
            JspTagConfig tagConfig = ConfigUtil.getConfig().getJspTagConfig();
            if (tagConfig != null) {
                String s = tagConfig.getTreeImageLocation();
                defaultTreeImageLocation = (s != null) ? s : InheritableState.DEFAULT_IMAGES;
            }
            else
                defaultTreeImageLocation = InheritableState.DEFAULT_IMAGES;
        }
View Full Code Here

    /**
     * This will set the JavaScript support level for the id and name attributes.
     */
    private static void setLegacyJavaScriptMode()
    {
        JspTagConfig tagConfig = ConfigUtil.getConfig().getJspTagConfig();
        if (tagConfig != null) {
            javascriptMode = tagConfig.getIdJavascript().getValue();
        }
        else {
            javascriptMode = IdJavascript.INT_DEFAULT;
        }
    }
View Full Code Here

     * @return the default location of the tree images.
     */
    public static String getTreeImageLocation()
    {
        if (defaultTreeImageLocation == null) {
            JspTagConfig tagConfig = ConfigUtil.getConfig().getJspTagConfig();
            if (tagConfig != null) {
                String s = tagConfig.getTreeImageLocation();
                defaultTreeImageLocation = (s != null) ? s : InheritableState.DEFAULT_IMAGES;
            }
            else
                defaultTreeImageLocation = InheritableState.DEFAULT_IMAGES;
        }
View Full Code Here

    /**
     * This will set the JavaScript support level for the id and name attributes.
     */
    private static void setLegacyJavaScriptMode()
    {
        JspTagConfig tagConfig = ConfigUtil.getConfig().getJspTagConfig();
        if (tagConfig != null) {
            javascriptMode = tagConfig.getIdJavascript().intValue();
        }
        else {
            javascriptMode = JspTagConfig.IdJavascript.INT_DEFAULT;
        }
    }
View Full Code Here

            PageFlowConfig pfConfig = parsePfConfig(document);
            PageFlowFactoriesConfig pfFactoriesConfig = parsePfFactoriesConfig(document);
            SharedFlowRefConfig[] sharedFlowRefConfigs = parseSharedFlowRefConfigs(document);
            RequestInterceptorsConfig requestInterceptorsConfig = parseRequestInterceptorsConfig(document);

            JspTagConfig jspTagConfig = parseJspTagConfig(document);
            ExpressionLanguagesConfig elConfig = parseExpressionLanguageConfig(document);
            TypeConverterConfig[] typeConvertersConfig = parseTypeConvertersConfig(document);
            UrlConfig urlConfig = parseUrlConfig(document);
            IteratorFactoryConfig[] iteratorFactories = parseIteratorFactoryConfig(document);
            PrefixHandlerConfig[] prefixHandlers = parsePrefixHandlerConfig(document);
View Full Code Here

        String tmp = null;
        Element elem = DomUtils.getChildElementByName(document.getDocumentElement(), "jsp-tag-config");

        if(elem == null)
            return new JspTagConfig();

        tmp = DomUtils.getChildElementText(elem, "doctype");
        if(tmp != null) {
            if(tmp.equals("html4-loose"))
                docType = DocType.HTML4_LOOSE;
            else if(tmp.equals("html4-loose-quirks"))
                docType = DocType.HTML4_LOOSE_QUIRKS;
            else if(tmp.equals("xhtml1-transitional"))
                docType = DocType.XHTML1_TRANSITIONAL;
        }

        tmp = DomUtils.getChildElementText(elem, "id-javascript");
        if(tmp != null) {
            if(tmp.equals("default"))
                idJavascript = IdJavascript.DEFAULT;
            else if(tmp.equals("legacy"))
                idJavascript = IdJavascript.LEGACY;
            else if(tmp.equals("legacyOnly"))
                idJavascript = IdJavascript.LEGACY_ONLY;
        }

        treeImageLocation = DomUtils.getChildElementText(elem, "tree-image-location");
        treeRendererClass = DomUtils.getChildElementText(elem, "tree-renderer-class");

        return new JspTagConfig(docType, idJavascript, treeImageLocation, treeRendererClass);
    }
View Full Code Here

     * @return the default location of the tree images.
     */
    public static String getTreeImageLocation()
    {
        if (defaultTreeImageLocation == null) {
            JspTagConfig tagConfig = ConfigUtil.getConfig().getJspTagConfig();
            if (tagConfig != null) {
                String s = tagConfig.getTreeImageLocation();
                defaultTreeImageLocation = (s != null) ? s : InheritableState.DEFAULT_IMAGES;
            }
            else
                defaultTreeImageLocation = InheritableState.DEFAULT_IMAGES;
        }
View Full Code Here

     * @return the name of the class to use to renderer the trees in the application.
     */
    public static String getTreeRendererClassName()
    {
        if (defaultTreeRendererClassName == null) {
            JspTagConfig tagConfig = ConfigUtil.getConfig().getJspTagConfig();
            if (tagConfig != null) {
                // the schema config includes a default value so we shouldn't
                // get a null value from the config object.
                defaultTreeRendererClassName = tagConfig.getTreeRendererClass();
            }
        }
        return defaultTreeRendererClassName;
    }
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.util.config.bean.JspTagConfig

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.