org.apache.tapestry.binding
Class MessageBinding

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

public class MessageBinding
extends AbstractBinding

A binding that connects directly to a localized string for a component.

Note: Renamed from StringBinding to MessageBinding in release 4.0.

Since:
2.0.4
Author:
Howard Lewis Ship
See Also:
IComponent#getString(String)

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

Constructor Detail

MessageBinding

protected MessageBinding(java.lang.String description,
                         ValueConverter valueConverter,
                         org.apache.hivemind.Location location,
                         IComponent component,
                         java.lang.String key)
Method Detail

getComponent

public java.lang.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

getKey

public java.lang.String getKey()

getObject

public java.lang.Object getObject()
Accesses the specified localized string. Never returns null.


toString

public java.lang.String toString()
Overrides:
toString in class AbstractBinding