Examples of IAsset


Examples of org.apache.tapestry.IAsset

    public void testKnownPrefix()
    {
        Location l = fabricateLocation(17);

        Resource r = newResource();
        IAsset asset = newAsset();

        List contributions = newContributions("known", newAssetFactory(
                r,
                "path/to/asset",
                Locale.ENGLISH,
                l,
                asset));

        replayControls();

        AssetSourceImpl as = new AssetSourceImpl();
        as.setContributions(contributions);

        as.initializeService();

        IAsset actual = as.findAsset(r, "known:path/to/asset", Locale.ENGLISH, l);

        assertSame(actual, asset);

        verifyControls();
    }
View Full Code Here

Examples of org.apache.tapestry.IAsset

    public void testUnknownPrefix()
    {
        Location l = fabricateLocation(17);

        Resource r = newResource();
        IAsset asset = newAsset();

        AssetFactory f = newAssetFactory(r, "unknown:path/to/asset", Locale.ENGLISH, l, asset);

        replayControls();

        AssetSourceImpl as = new AssetSourceImpl();
        as.setDefaultAssetFactory(f);

        IAsset actual = as.findAsset(r, "unknown:path/to/asset", Locale.ENGLISH, l);

        assertSame(actual, asset);

        verifyControls();
    }
View Full Code Here

Examples of org.apache.tapestry.IAsset

    public void testNoPrefix()
    {
        Location l = fabricateLocation(17);

        Resource r = newResource();
        IAsset asset = newAsset();

        AssetFactory f = newAssetFactory(r, "path/to/asset", Locale.ENGLISH, l, asset);

        replayControls();

        AssetSourceImpl as = new AssetSourceImpl();
        as.setLookupAssetFactory(f);

        IAsset actual = as.findAsset(r, "path/to/asset", Locale.ENGLISH, l);

        assertSame(actual, asset);

        verifyControls();
    }
View Full Code Here

Examples of org.apache.tapestry.IAsset

            IRender delegate = getDelegate();

            if (delegate != null)
                delegate.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

        }

        // 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

Examples of org.apache.tapestry.IAsset

        _assetName = assetName;
    }

    public Object getObject()
    {
        IAsset result = _component.getAsset(_assetName);

        if (result == null)
            throw new BindingException(BindingMessages.missingAsset(_component, _assetName),
                    _component, getLocation(), this, null);
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(cycle));
            writer.attribute("border", 0);

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

Examples of org.apache.tapestry.IAsset

    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

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
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.