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#getString(String)
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MessageBinding
protected MessageBinding(java.lang.String description,
ValueConverter valueConverter,
org.apache.hivemind.Location location,
IComponent component,
java.lang.String key)
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