org.onebusaway.presentation.impl.resources
Class ResourcePrototypeImpl

java.lang.Object
  extended by org.onebusaway.presentation.impl.resources.ResourcePrototypeImpl
All Implemented Interfaces:
com.google.gwt.resources.client.ResourcePrototype
Direct Known Subclasses:
CssResourceImpl, DataResourceImpl, ImageResourceImpl

public class ResourcePrototypeImpl
extends Object
implements com.google.gwt.resources.client.ResourcePrototype


Field Summary
protected  ClientBundleContext _context
           
protected  boolean _initialized
           
protected  File _localFile
           
protected  long _localFileLength
           
protected  URL _localUrl
           
protected  ClientBundleImpl _parentBundle
           
 
Constructor Summary
ResourcePrototypeImpl(ClientBundleContext context, ClientBundleImpl parentBundle, String name)
           
 
Method Summary
protected  String constructURL(String resourceKey, String resourceExtension, LocalResource resource)
           
 long getLastModifiedTime()
           
 URL getLocalUrl()
          LocalResource Interface
 String getName()
          ResourcePrototype Interface
protected  boolean isUpToDate()
          Protected Methods
protected  void refresh()
           
 void setLocalFile(File file)
           
protected  void setUpToDate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_context

protected ClientBundleContext _context

_parentBundle

protected ClientBundleImpl _parentBundle

_initialized

protected boolean _initialized

_localUrl

protected URL _localUrl

_localFile

protected File _localFile

_localFileLength

protected long _localFileLength
Constructor Detail

ResourcePrototypeImpl

public ResourcePrototypeImpl(ClientBundleContext context,
                             ClientBundleImpl parentBundle,
                             String name)
Method Detail

setLocalFile

public void setLocalFile(File file)

getName

public String getName()
ResourcePrototype Interface

Specified by:
getName in interface com.google.gwt.resources.client.ResourcePrototype

getLocalUrl

public URL getLocalUrl()
LocalResource Interface


getLastModifiedTime

public long getLastModifiedTime()

isUpToDate

protected boolean isUpToDate()
Protected Methods


setUpToDate

protected void setUpToDate()

refresh

protected void refresh()

constructURL

protected String constructURL(String resourceKey,
                              String resourceExtension,
                              LocalResource resource)


Copyright © 2011 OneBusAway. All Rights Reserved.