Package org.apache.tapestry.asset

Examples of org.apache.tapestry.asset.PrivateAsset


            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


            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

        {
            ClasspathResource scriptLocation = (ClasspathResource) _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, _assetService, null);
            String url = asset.buildURL(cycle);

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

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

    {
        if (m_objOpenAsset == null)
        {
            //m_objOpenAsset = new PrivateAsset(m_strOpenAssetsURL);
            m_objOpenAsset =
                new PrivateAsset(
                    new ClasspathResource(new DefaultClassResolver(), m_strOpenAssetsURL),
                    null);
        }
        return m_objOpenAsset;
    }
View Full Code Here

    {
        if (m_objCloseAsset == null)
        {
            //m_objCloseAsset = new PrivateAsset(m_strCloseAssetsURL);
            m_objCloseAsset =
                new PrivateAsset(
                    new ClasspathResource(new DefaultClassResolver(), m_strCloseAssetsURL),
                    null);
        }
        return m_objCloseAsset;
    }
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(objCycle));
            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

        {
            ClasspathResource scriptLocation = (ClasspathResource) _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

            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

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

            return new PrivateAsset(
                (ClasspathResourceLocation) findAsset(assetName,
                    component,
                    baseLocation,
                    path,
                    location),
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.