Class ResourcePrototypeImpl
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected ClientBundleContext_contextprotected boolean_initializedprotected File_localFileprotected long_localFileLengthprotected URL_localUrlprotected ClientBundleImpl_parentBundle
-
Constructor Summary
Constructors Constructor Description ResourcePrototypeImpl(ClientBundleContext context, ClientBundleImpl parentBundle, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringconstructURL(String resourceKey, String resourceExtension, LocalResource resource)longgetLastModifiedTime()URLgetLocalUrl()LocalResourceInterfaceStringgetName()ResourcePrototypeInterfaceprotected booleanisUpToDate()Protected Methodsprotected voidrefresh()voidsetLocalFile(File file)protected voidsetUpToDate()
-
-
-
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()
ResourcePrototypeInterface- Specified by:
getNamein interfacecom.google.gwt.resources.client.ResourcePrototype
-
getLocalUrl
public URL getLocalUrl()
LocalResourceInterface
-
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)
-
-