Class ReflectionBehavior.Javascript
- java.lang.Object
-
- org.wicketstuff.minis.behavior.reflection.ReflectionBehavior.Javascript
-
- Enclosing class:
- ReflectionBehavior
public static final class ReflectionBehavior.Javascript extends Object
Container for javascript calls this behavior enables- Author:
- ivaynberg
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CharSequencehide(String id)Gets the Javascript for removing a reflection from an image.static CharSequenceshow(String id, Integer opacity, Integer height)Gets the script that adds a reflection to an image.
-
-
-
Method Detail
-
hide
public static CharSequence hide(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.
-
show
public static CharSequence show(String id, Integer opacity, 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 imageopacity- 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
-
-