Class StickyContainer

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Badgeable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

@Component public class StickyContainer extends Container
A container component that can be "stuck" to either the top or bottom of the viewport.

This container extends the standard Container class and adds the ability to make its contents stick to either the top or bottom of the viewport when scrolling.

See Also:
  • Constructor Details

    • StickyContainer

      public StickyContainer()
  • Method Details

    • getClassName

      public String getClassName()
    • setSTUCK

      public void setSTUCK(String stuck)
      Sets the sticky position of this container.

      If the value starts with 't' (case-insensitive), the container will stick to the top. Otherwise, it will stick to the bottom.

      Parameters:
      stuck - a string indicating where to stick the container ('t' for top, anything else for bottom)
    • setFULLSIZE

      public void setFULLSIZE(String s)
      Indicates if the sticky container has to occupy all the available space in width
      Parameters:
      s - A string that represents a boolean value ("true" or "1", "false" or "0").
      If the string is not recognized as a boolean value, it will be used the default value, that is false
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Generates the HTML for this sticky container.

      Wraps the standard container HTML in a div with the appropriate sticky CSS class.

      Overrides:
      getHtml in class Container
      Parameters:
      es - the entity set containing data for this container
      Returns:
      the HTML element representing this sticky container