org.apache.tapestry.binding
Class StringBinding

java.lang.Object
  extended by org.apache.tapestry.binding.AbstractBinding
      extended by 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)

Constructor Summary
StringBinding(IComponent component, String key, ILocation location)
           
 
Method Summary
 IComponent getComponent()
           
 String getKey()
           
 Object getObject()
          Accesses the specified localized string.
 boolean isInvariant()
          Returns true.
 String toString()
           
 
Methods inherited from class org.apache.tapestry.binding.AbstractBinding
createReadOnlyBindingException, getBoolean, getDouble, getInt, getLocation, getObject, getString, isWrapper, setBoolean, setDouble, setInt, setObject, setString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringBinding

public StringBinding(IComponent component,
                     String key,
                     ILocation location)
Method Detail

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