org.wicketstuff.minis.reflection
Class ReflectionBehavior.Javascript

java.lang.Object
  extended by org.wicketstuff.minis.reflection.ReflectionBehavior.Javascript
Enclosing class:
ReflectionBehavior

public static class ReflectionBehavior.Javascript
extends java.lang.Object

Container for javascript calls this behavior enables

Author:
ivaynberg

Method Summary
static java.lang.CharSequence hide(java.lang.String id)
          Gets the Javascript for removing a reflection from an image.
static java.lang.CharSequence show(java.lang.String id, java.lang.Integer opacity, java.lang.Integer height)
          Gets the script that adds a reflection to an image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

show

public static java.lang.CharSequence show(java.lang.String id,
                                          java.lang.Integer opacity,
                                          java.lang.Integer height)
Gets the script that adds a reflection to an image. You have to manually add the REFLECTION_JS resource reference to your page if you use this script directly.

Parameters:
id - the markup id of the image
opacity - the opacity of the reflection (may be null for default value)
height - the height of the reflection (may be null for default value)
Returns:
the script

hide

public static java.lang.CharSequence hide(java.lang.String id)
Gets the Javascript for removing a reflection from an image. You have to manually add the REFLECTION_JS resource reference to your page if you use this script directly.

Parameters:
id - the markup id of the image.
Returns:
the script.


Copyright © 2010. All Rights Reserved.