org.apache.tapestry.binding
Class MessageBinding

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

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.getMessages()

Field Summary
 
Fields inherited from class org.apache.tapestry.binding.AbstractBinding
_description
 
Constructor Summary
protected MessageBinding(String description, ValueConverter valueConverter, org.apache.hivemind.Location location, IComponent component, String key)
           
 
Method Summary
 Object getComponent()
          Returns the component to which this binding is connected; this is currently only used when building certain exceptions.
 String getKey()
           
 Object getObject()
          Accesses the specified localized string.
 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(String description,
                         ValueConverter valueConverter,
                         org.apache.hivemind.Location location,
                         IComponent component,
                         String key)
Method Detail

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.

getKey

public String getKey()

getObject

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


toString

public String toString()
Overrides:
toString in class AbstractBinding


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