Package org.apache.tapestry

Examples of org.apache.tapestry.IAsset


        IRequestCycle cycle,
        IResourceLocation location,
        IComponent component,
        Locale locale)
    {
        IAsset templateAsset = component.getAsset(TEMPLATE_ASSET_NAME);

        if (templateAsset != null)
            return readTemplateFromAsset(cycle, component, templateAsset);

        String name = location.getName();
View Full Code Here


    return getTableColumn().getColumnName().equals(strSortColumn);
  }

  public IAsset getSortImage()
  {
    IAsset objImageAsset;

    IRequestCycle objCycle = getPage().getRequestCycle();
    ITableSortingState objSortingState = getTableModel().getSortingState();
    if (objSortingState.getSortOrder()
      == ITableSortingState.SORT_ASCENDING)
View Full Code Here

    return m_objColumn.getColumnName().equals(strSortColumn);
  }

  public IAsset getSortImage()
  {
    IAsset objImageAsset;

    IRequestCycle objCycle = getPage().getRequestCycle();
    ITableSortingState objSortingState = getTableModel().getSortingState();
    if (objSortingState.getSortOrder()
      == ITableSortingState.SORT_ASCENDING)
View Full Code Here

            IRender delegate = getDelegate();

            if (delegate != null)
                delegate.render(writer, cycle);

            IAsset stylesheet = getStylesheet();

            if (stylesheet != null)
                writeStylesheetLink(writer, cycle, stylesheet);

            Iterator i = Tapestry.coerceToIterator(getStylesheets());
View Full Code Here

        // 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(cycle);

        writer.beginEmpty("img");

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

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

            IAsset icon = getIcon();

            writer.beginEmpty("img");
            writer.attribute("src", icon.buildURL(cycle));
            writer.attribute("border", 0);

            if (!disabled)
                writer.end(); // <a>
View Full Code Here

        }

        // Not rewinding, do the real render

        boolean disabled = isDisabled();
        IAsset disabledImage = getDisabledImage();

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

        String imageURL = finalImage.buildURL(cycle);

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

            if (value == null)
                continue;

            if (value instanceof IAsset)
            {
                IAsset asset = (IAsset) value;

                // Get the URL of the asset and insert that.
                attribute = asset.buildURL(cycle);
            }
            else
                attribute = value.toString();

            writer.attribute(name, attribute);
View Full Code Here

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

            IAssetSpecification assetSpec = specification.getAsset(name);

            IAsset asset = convertAsset(assetSpec);

            component.addAsset(name, asset);
        }
    }
View Full Code Here

     *
     * @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

TOP

Related Classes of org.apache.tapestry.IAsset

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.