org.apache.tapestry.binding
Class MessageBinding
java.lang.Object
org.apache.tapestry.binding.AbstractBinding
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()
MessageBinding
protected MessageBinding(String description,
ValueConverter valueConverter,
org.apache.hivemind.Location location,
IComponent component,
String key)
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.