NextApp Echo
App Container 1.0.5

nextapp.echoservlet.ui
Class RolloverScript

java.lang.Object
  extended bynextapp.echoservlet.ui.RolloverScript

public class RolloverScript
extends java.lang.Object

A utility class that wraps JavaScript code required to create mouse rollover effects in HTML pages on the client without server interaction.


Field Summary
static Service SERVICE_ROLLOVER_SCRIPT
          A service containing JavaScript code used to create rollover effects.
 
Constructor Summary
private RolloverScript()
          Non-instantiable class
 
Method Summary
static java.lang.String getScriptRollover(Connection conn, java.lang.String id, java.lang.String imageUri, java.lang.String styleName)
          Returns the necessary script to produce a button rollover effect.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_ROLLOVER_SCRIPT

public static final Service SERVICE_ROLLOVER_SCRIPT
A service containing JavaScript code used to create rollover effects.

Constructor Detail

RolloverScript

private RolloverScript()
Non-instantiable class

Method Detail

getScriptRollover

public static java.lang.String getScriptRollover(Connection conn,
                                                 java.lang.String id,
                                                 java.lang.String imageUri,
                                                 java.lang.String styleName)
Returns the necessary script to produce a button rollover effect.

Parameters:
conn - The connection whose response the generated script will be written to.
id - The Id of the button that will be given the rollover effect.
imageUri - The URI of the replacement image.
styleName - The URI of the replacement style.
Returns:
A JavaScript method call that should be invoked in the rollover event listener.

NextApp Echo
App Container 1.0.5