org.apache.tapestry.binding
Class StringBinding

java.lang.Object
  extended byorg.apache.tapestry.binding.AbstractBinding
      extended byorg.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,v 1.6 2004/02/19 17:37:39 hlship Exp $
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()