org.apache.tapestry.binding
Class StringBinding
java.lang.Object
org.apache.tapestry.binding.AbstractBinding
org.apache.tapestry.binding.StringBinding
- All Implemented Interfaces:
- IBinding, ILocatable
public class StringBinding
- extends AbstractBinding
A binding that connects directly to a localized string for
a component.
- Since:
- 2.0.4
- Version:
- $Id: StringBinding.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- Howard Lewis Ship
- See Also:
IComponent.getString(String)
Methods inherited from class org.apache.tapestry.binding.AbstractBinding |
createReadOnlyBindingException, getBoolean, getDouble, getInt, getLocation, getObject, getString, isWrapper, setBoolean, setDouble, setInt, setObject, setString |
StringBinding
public StringBinding(IComponent component,
String key,
ILocation location)
getComponent
public IComponent getComponent()
getKey
public String getKey()
getObject
public Object getObject()
- Accesses the specified localized string. Never returns null.
isInvariant
public boolean isInvariant()
- Returns true. Localized component strings are
read-only.
- Specified by:
isInvariant
in interface IBinding
- Overrides:
isInvariant
in class AbstractBinding
toString
public String toString()
- Overrides:
toString
in class Object