PenProfile 2.x

com.livescribe.i18n
Class DisplayableResource

java.lang.Object
  extended by com.livescribe.i18n.Resource
      extended by com.livescribe.i18n.DisplayableResource
Direct Known Subclasses:
ImageResource, TextResource

public abstract class DisplayableResource
extends Resource

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

Since:
0.4
See Also:
Locale

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

Constructor Detail

DisplayableResource

protected DisplayableResource(String id)
Creates a new audible resource having the specified ID.

Parameters:
id - the resource ID
Method Detail

getDisplayable

public Object getDisplayable()
Gets the localized displayable object. This returns:
  1. A string if this is an instance of TextResource,
  2. An Image if this is an instance of ImageResource, and
  3. null if the resource is not system defined.

Returns:
either a string, Image, or null.

PenProfile 2.x

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