org.apache.tapestry.binding
Class AssetBinding

java.lang.Object
  extended by org.apache.tapestry.binding.AbstractBinding
      extended by org.apache.tapestry.binding.AssetBinding
All Implemented Interfaces:
org.apache.hivemind.Locatable, IBinding

public class AssetBinding
extends AbstractBinding

A binding that is connected to an asset provided by a component.

Since:
4.0
Author:
Howard M. Lewis Ship

Field Summary
 
Fields inherited from class org.apache.tapestry.binding.AbstractBinding
_description
 
Constructor Summary
AssetBinding(String description, ValueConverter valueConverter, org.apache.hivemind.Location location, IComponent component, String assetName)
           
 
Method Summary
 Object getComponent()
          Returns the component to which this binding is connected; this is currently only used when building certain exceptions.
 Object getObject()
          Returns the value of this binding.
 
Methods inherited from class org.apache.tapestry.binding.AbstractBinding
createReadOnlyBindingException, extendDescription, getDescription, getLocation, getObject, getValueConverter, isInvariant, setObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssetBinding

public AssetBinding(String description,
                    ValueConverter valueConverter,
                    org.apache.hivemind.Location location,
                    IComponent component,
                    String assetName)
Method Detail

getObject

public Object getObject()
Description copied from interface: IBinding
Returns the value of this binding. This is the essential method.


getComponent

public Object getComponent()
Description copied from class: AbstractBinding
Returns the component to which this binding is connected; this is currently only used when building certain exceptions. This implementation returns null.

Overrides:
getComponent in class AbstractBinding
Returns:
The IComponent object this binding is set against.


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.