Examples of IAsset


Examples of org.apache.tapestry.IAsset

     *
     * @return IAsset nevalidno neshto
     */
    public IAsset getConnectImage()
    {
        IAsset objResult = null;
        int nConnectImageType = getCurrentForeachConnectImageValue();
        switch (nConnectImageType)
        {
            case TreeRowObject.EMPTY_CONN_IMG:
            {
View Full Code Here

Examples of org.apache.tapestry.IAsset

        {
            writer.begin("a");
            writer.attribute("href", (String) symbols.get(SYM_BUTTONONCLICKHANDLER));
        }

        IAsset icon = getIcon();

        writer.beginEmpty("img");
        writer.attribute("src", icon.buildURL());
        writer.attribute("alt", getMessages().getMessage("alt"));
        writer.attribute("border", 0);
       
        if (!disabled)
            writer.end();
View Full Code Here

Examples of org.apache.tapestry.IAsset

     *
     * @return IAsset
     */
    public IAsset getNodeImage()
    {
        IAsset objResult = null;
        ITreeRowSource objRowSource = getTreeRowSource();
        boolean bLeaf = objRowSource.getTreeRow().getLeaf();
        int nRowType = objRowSource.getTreeRow().getTreeRowPossiotionType();
        if (!bLeaf)
        {
View Full Code Here

Examples of org.apache.tapestry.IAsset

     *
     * @return IAsset nevalidno neshto
     */
    public IAsset getConnectImage()
    {
        IAsset objResult = null;
        int nConnectImageType = getCurrentForeachConnectImageValue();
        switch(nConnectImageType)
        {
        case TreeRowObject.EMPTY_CONN_IMG:
        {
View Full Code Here

Examples of org.apache.tapestry.IAsset

    }
   
    protected void renderFormComponent(IMarkupWriter writer, IRequestCycle cycle)
    {
        boolean disabled = isDisabled();
        IAsset disabledImage = getDisabledImage();

        IAsset finalImage = (disabled && disabledImage != null) ? disabledImage : getImage();

        String imageURL = finalImage.buildURL();

        writer.beginEmpty("input");
        writer.attribute("type", "image");
        writer.attribute("name", getName());
View Full Code Here

Examples of org.apache.tapestry.IAsset

        int count = Tapestry.size(_externalScripts);
        for (int i = 0; i < count; i++)
        {
            Resource scriptLocation = (Resource) _externalScripts.get(i);
           
            IAsset asset = _assetFactory.createAsset(scriptLocation, null);
           
            String url = asset.buildURL();
           
            // Note: important to use begin(), not beginEmpty(), because browser don't
            // interpret <script .../> properly.
           
            _builder.writeExternalScript(url, cycle);
View Full Code Here

Examples of org.apache.tapestry.IAsset

            IRender ajaxDelegate = getAjaxDelegate();
           
            if (isAjaxEnabled() && ajaxDelegate != null)
                ajaxDelegate.render(writer, cycle);
           
            IAsset stylesheet = getStylesheet();
           
            if (stylesheet != null)
                writeStylesheetLink(writer, cycle, stylesheet);
           
            Iterator i = (Iterator) getValueConverter().coerceValue(
View Full Code Here

Examples of org.apache.tapestry.IAsset

        // no
        // sideffects to accessor methods via bindings).

        if (cycle.isRewinding()) return;

        IAsset imageAsset = getImage();

        if (imageAsset == null)
            throw Tapestry.createRequiredParameterException(this, "image");

        String imageURL = imageAsset.buildURL();

        writer.beginEmpty("img");

        writer.attribute("src", imageURL);
View Full Code Here

Examples of org.apache.tapestry.IAsset

     * Gets the {@link IScript}for the correct script.
     */

    private IScript getParsedScript()
    {
        IAsset scriptAsset = getScriptAsset();
        String scriptPath = getScriptPath();

        // only one of the two is allowed
        if (scriptAsset != null && scriptPath != null)
            throw new ApplicationRuntimeException(HTMLMessages
                    .multiAssetParameterError(getBinding("scriptAsset"),
                            getBinding("scriptPath")));

        if (scriptPath == null && scriptAsset == null)
            throw new ApplicationRuntimeException(HTMLMessages
                    .noScriptPathError());

        IScriptSource source = getScriptSource();

        Resource scriptLocation = null;
        if (scriptPath != null)
        {

            // If the script path is relative, it should be relative to the
            // Script component's
            // container (i.e., relative to a page in the application).

            Resource rootLocation = getContainer().getSpecification()
                    .getSpecificationLocation();
            scriptLocation = rootLocation.getRelativeResource(scriptPath);
        }
        else scriptLocation = scriptAsset.getResourceLocation();

        try
        {
            return source.getScript(scriptLocation);
        }
View Full Code Here

Examples of org.apache.tapestry.IAsset

        {
            String name = (String) i.next();

            IAssetSpecification assetSpec = specification.getAsset(name);

            IAsset asset = convertAsset(assetSpec);

            component.addAsset(name, asset);
        }
    }
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.