PenProfile 2.x

com.livescribe.i18n
Class TextResource

java.lang.Object
  extended by com.livescribe.i18n.Resource
      extended by com.livescribe.i18n.DisplayableResource
          extended by com.livescribe.i18n.TextResource

public abstract class TextResource
extends DisplayableResource

This class defines a text resource that has been localized for a particular Locale and that can be rendered on the display.

See Also:
Locale

Field Summary
 
Fields inherited from class com.livescribe.i18n.Resource
id
 
Constructor Summary
protected TextResource(String id)
          Creates a new text resource having the specified ID.
 
Method Summary
abstract  String getText()
          Gets the localized text.
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class com.livescribe.i18n.DisplayableResource
getDisplayable
 
Methods inherited from class com.livescribe.i18n.Resource
getId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextResource

protected TextResource(String id)
Creates a new text resource having the specified ID.

Parameters:
id - the resource ID
Method Detail

getText

public abstract String getText()
Gets the localized text.

Returns:
the localized text.

toString

public String toString()
Returns a string representation of this object. This implementation returns the resource text.

Overrides:
toString in class Resource
Returns:
the resource text.

PenProfile 2.x

Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.