|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.ui.ImageSwapScript
A utility class that wraps JavaScript code required to swap images in HTML pages on the client without server interaction.
Field Summary | |
static Service |
SERVICE_IMAGE_SWAP_SCRIPT
A service containing JavaScript code used to swap images on the client. |
Method Summary | |
static java.lang.String |
getScriptImageSwap(Connection conn,
Id id,
java.lang.String newImageUri)
Returns the JavaScript necessary to dynamically change an image that exists in the client browser to the one specified in newImageUri . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Service SERVICE_IMAGE_SWAP_SCRIPT
Method Detail |
public static java.lang.String getScriptImageSwap(Connection conn, Id id, java.lang.String newImageUri)
newImageUri
. This method is used by buttons to generate
rollover effects and by checkboxes and radio buttons to toggle their
state indicators without server interaction.
conn
- The connection whose response the generated script will be
written to.id
- The identifier of the image to be modified.newImageUri
- The URI of the replacement image.
|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |