Package org.apache.tapestry.asset

Examples of org.apache.tapestry.asset.PrivateAsset


            {
                __CLOVER_194_0.S[4667]++;baseLocation = new ClasspathResource(_classResolver, "/");
                __CLOVER_194_0.S[4668]++;path = path.substring(1);
            }}

            __CLOVER_194_0.S[4669]++;return new PrivateAsset((ClasspathResource) findAsset(assetName, component, baseLocation, path, location),
                    location);
        }}

        __CLOVER_194_0.S[4670]++;return new ContextAsset((ContextResource) findAsset(assetName, component, _applicationRoot, path, location),
                location);
View Full Code Here


            return objUniqueKey.equals(objStateModel.getSelectedNode());
        }

        public void render(IMarkupWriter objWriter, IRequestCycle objCycle)
        {
            PrivateAsset objAsset = getAsset();
            objWriter.begin("img");
            objWriter.attribute("border", "0");
            objWriter.attribute("src", objAsset.buildURL());
            objWriter.attribute("valign", "middle");
            objWriter.end();
            objWriter.print(" ");
            objWriter.begin("span");
            String strClassName = "fsNodeValue";
View Full Code Here

            return (IFileSystemTreeNode) m_objNode;
        }

        private PrivateAsset getAsset()
        {
            PrivateAsset objAsset;

            if (!isOpen())
            {
                objAsset = getNode().getAssets().getAssetForCloseNode();
            }
View Full Code Here

            {
                baseLocation = new ClasspathResourceLocation(_resolver, "/");
                path = path.substring(1);
            }

            return new PrivateAsset(
                (ClasspathResourceLocation) findAsset(assetName,
                    component,
                    baseLocation,
                    path,
                    location),
View Full Code Here

            ClasspathResourceLocation scriptLocation =
                (ClasspathResourceLocation) _externalScripts.get(i);

            // This is still very awkward!  Should move the code inside PrivateAsset somewhere
            // else, so that an asset does not have to be created to to build the URL.
            PrivateAsset asset = new PrivateAsset(scriptLocation, null);
            String url = asset.buildURL(getPage().getRequestCycle());

            // Note: important to use begin(), not beginEmpty(), because browser don't
            // interpret <script .../> properly.

            writer.begin("script");
View Full Code Here

            Object objUniqueKey = objDataModel.getUniqueKey(m_objNode, null);
            return objUniqueKey.equals(objStateModel.getSelectedNode());
        }

        public void render(IMarkupWriter objWriter, IRequestCycle objCycle) {
            PrivateAsset objAsset = getAsset();
            objWriter.begin("img");
            objWriter.attribute("border", "0");
            objWriter.attribute("src", objAsset.buildURL());
            objWriter.attribute("valign", "middle");
            objWriter.end();
            objWriter.print(" ");
            objWriter.begin("span");
            String strClassName = "fsNodeValue";
View Full Code Here

        public IFileSystemTreeNode getNode(){
            return (IFileSystemTreeNode) m_objNode;
        }

        private PrivateAsset getAsset(){
            PrivateAsset objAsset;

            if (!isOpen()) {
                objAsset = getNode().getAssets().getAssetForCloseNode();
            } else {
                objAsset = getNode().getAssets().getAssetForOpenNode();
View Full Code Here

            {
                baseLocation = new ClasspathResourceLocation(_resolver, "/");
                path = path.substring(1);
            }

            return new PrivateAsset(
                (ClasspathResourceLocation) findAsset(assetName,
                    component,
                    baseLocation,
                    path,
                    location),
View Full Code Here

            {
                baseLocation = new ClasspathResourceLocation(_resolver, "/");
                path = path.substring(1);
            }

            return new PrivateAsset(
                (ClasspathResourceLocation) findAsset(assetName,
                    component,
                    baseLocation,
                    path,
                    location),
View Full Code Here

            ClasspathResourceLocation scriptLocation =
                (ClasspathResourceLocation) _externalScripts.get(i);

            // This is still very awkward!  Should move the code inside PrivateAsset somewhere
            // else, so that an asset does not have to be created to to build the URL.
            PrivateAsset asset = new PrivateAsset(scriptLocation, null);
            String url = asset.buildURL(getPage().getRequestCycle());

            // Note: important to use begin(), not beginEmpty(), because browser don't
            // interpret <script .../> properly.

            writer.begin("script");
View Full Code Here

TOP

Related Classes of org.apache.tapestry.asset.PrivateAsset

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.