|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
net.sf.jzeno.echo.components.CustomComponent
net.sf.jzeno.echo.components.CustomRenderingComponent
net.sf.jzeno.echo.components.PreloadImagesComponent
public class PreloadImagesComponent
Component that triggers pre-loading of images into the browser cache. This
component was created to circumvent bugs in IE's image caching. It will
preload all images in the specified path (relative to the 'images' folder in
your web-app folder), that en in extensions :
.gif,.GIF,.jpg,.JPG,.jpeg,.JPEG,.png,.PNG
By default it will preload all images in [images], unless you specify the
path
property.
Field Summary |
---|
Constructor Summary | |
---|---|
PreloadImagesComponent()
|
Method Summary | |
---|---|
protected java.lang.String |
getHtml()
Render your component into HTML here. |
protected java.lang.String |
getJavascript()
Return some javascript that you which to execute for the current rendering of your component. |
protected java.lang.String |
getJavascriptLibrary()
If you whish to use some javascript functions/libraries you can return those in this method. |
java.lang.String |
getPath()
|
void |
setPath(java.lang.String path)
|
protected void |
update(java.lang.String input)
If you want to send information from you client back to the server to update state there, you can use the createUpdateScript function to generate a javascript function-call that will trigger an update. |
Methods inherited from class net.sf.jzeno.echo.components.CustomRenderingComponent |
---|
createUpdateScript, isRebound, rebind, resetRebound |
Methods inherited from class net.sf.jzeno.echo.components.CustomComponent |
---|
addValidator, fireActionEvent, fireActionEvent, fireActionEvent, getActionCommand, getBean, getBeanClass, getDecorator, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isBound, isMarkedInvalid, isReadOnly, isRequired, isValid, markInvalid, markValid, preRender, removeValidator, setActionCommand, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setReadOnly, setRequired, setValue, traceValue, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreloadImagesComponent()
Method Detail |
---|
public java.lang.String getPath()
public void setPath(java.lang.String path)
protected java.lang.String getHtml()
CustomRenderingComponent
Render your component into HTML here.
getHtml
in class CustomRenderingComponent
protected java.lang.String getJavascript()
CustomRenderingComponent
Return some javascript that you which to execute for the current rendering of your component.
getJavascript
in class CustomRenderingComponent
protected java.lang.String getJavascriptLibrary()
CustomRenderingComponent
If you whish to use some javascript functions/libraries you can return those in this method. If you return null, no javascript will be available to you rendered HTML. The implementation could take the form of returning a string constant, or it could load a .js file from disk, and return the content, or it could load a JavaScript library as a resource from you application classpath, etc...
getJavascriptLibrary
in class CustomRenderingComponent
protected void update(java.lang.String input)
CustomRenderingComponent
If you want to send information from you client back to the server to update state there, you can use the createUpdateScript function to generate a javascript function-call that will trigger an update.
update
in class CustomRenderingComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |