Class ReflectionBehavior.Javascript

  • Enclosing class:
    ReflectionBehavior

    public static final class ReflectionBehavior.Javascript
    extends Object
    Container for javascript calls this behavior enables
    Author:
    ivaynberg
    • 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 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