org.ajax4jsf.resource
Class ClientScript
java.lang.Object
org.ajax4jsf.resource.InternetResourceBase
org.ajax4jsf.resource.JarResource
org.ajax4jsf.resource.ClientScript
- All Implemented Interfaces:
- InternetResource
- Direct Known Subclasses:
- AjaxScript, DnDScript, ImageCacheScript, PrototypeScript, SmartPositionScript
public abstract class ClientScript
- extends JarResource
Resource for AJAX client-side script. Render one time per page.
- Version:
- $Revision: 1.1.2.3 $ $Date: 2007/01/26 14:15:18 $
- Author:
- asmirnov@exadel.com (latest modification by $Author: alexsmirnov $)
Constructor Summary |
ClientScript()
Set JavaScript renderer and modification time to application-startup time. |
Method Summary |
void |
encode(javax.faces.context.FacesContext context,
java.lang.Object data)
|
void |
encode(javax.faces.context.FacesContext context,
java.lang.Object data,
java.util.Map<java.lang.String,java.lang.Object> attributes)
|
void |
encodeBegin(javax.faces.context.FacesContext context,
java.lang.Object component,
java.util.Map<java.lang.String,java.lang.Object> attrs)
|
void |
encodeEnd(javax.faces.context.FacesContext context,
java.lang.Object component)
|
abstract java.lang.String |
getJavaScript()
|
java.util.Date |
getLastModified(ResourceContext resourceContext)
|
boolean |
isCacheable(ResourceContext resourceContext)
|
protected boolean |
isUsePrototype()
|
void |
setUsePrototype(boolean usePrototype)
|
Methods inherited from class org.ajax4jsf.resource.InternetResourceBase |
deserializeData, getContentLength, getContentType, getDataToStore, getExpired, getKey, getProperty, getRenderer, getUri, isSessionAware, requireFacesContext, restoreData, send, sendHeaders, setCacheable, setContentLength, setExpired, setKey, setLastModified, setProperty, setRenderer, setSessionAware |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
usePrototype
protected boolean usePrototype
ClientScript
public ClientScript()
- Set JavaScript renderer and modification time to application-startup time.
getLastModified
public java.util.Date getLastModified(ResourceContext resourceContext)
- Specified by:
getLastModified
in interface InternetResource
- Overrides:
getLastModified
in class InternetResourceBase
isCacheable
public boolean isCacheable(ResourceContext resourceContext)
- Specified by:
isCacheable
in interface InternetResource
- Overrides:
isCacheable
in class InternetResourceBase
getJavaScript
public abstract java.lang.String getJavaScript()
- Returns:
- Returns the javaScript.
encode
public void encode(javax.faces.context.FacesContext context,
java.lang.Object data,
java.util.Map<java.lang.String,java.lang.Object> attributes)
throws java.io.IOException
- Specified by:
encode
in interface InternetResource
- Overrides:
encode
in class InternetResourceBase
- Throws:
java.io.IOException
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context,
java.lang.Object component,
java.util.Map<java.lang.String,java.lang.Object> attrs)
throws java.io.IOException
- Specified by:
encodeBegin
in interface InternetResource
- Overrides:
encodeBegin
in class InternetResourceBase
- Throws:
java.io.IOException
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context,
java.lang.Object component)
throws java.io.IOException
- Specified by:
encodeEnd
in interface InternetResource
- Overrides:
encodeEnd
in class InternetResourceBase
- Throws:
java.io.IOException
encode
public void encode(javax.faces.context.FacesContext context,
java.lang.Object data)
throws java.io.IOException
- Specified by:
encode
in interface InternetResource
- Overrides:
encode
in class InternetResourceBase
- Throws:
java.io.IOException
isUsePrototype
protected boolean isUsePrototype()
- Returns:
- Returns the usePrototype.
setUsePrototype
public void setUsePrototype(boolean usePrototype)
- Parameters:
usePrototype
- the usePrototype to set
Copyright © 2010. All Rights Reserved.