Class CardViewFullHeightResizer

java.lang.Object
overit.geocallapp.utilities.ux.ui.container.cardview.CardViewFullHeightResizer

public class CardViewFullHeightResizer extends Object
Helper class that provides full height resizing functionality for CardView components. This class encapsulates all full height resizer related logic, making it reusable across different CardView implementations while maintaining clean separation of concerns. The FullHeightResizer automatically adjusts the CardView height to fit the available browser window space, handles scrolling, and maintains scroll position.
Since:
21.0
  • Constructor Details

    • CardViewFullHeightResizer

      public CardViewFullHeightResizer(CardView cardView)
      Creates a new full height resizer instance for the given CardView.
      Parameters:
      cardView - The CardView that will use this full height resizer
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
      Enables or disables full height resizer functionality.
      Parameters:
      enabled - true to enable full height resizer, false to disable
    • isEnabled

      public boolean isEnabled()
      Checks if full height resizer is enabled.
      Returns:
      true if full height resizer is enabled, false otherwise
    • setForcedHeightPadding

      public void setForcedHeightPadding(int padding)
      Sets the forced height padding (space reserved for UI elements).
      Parameters:
      padding - The padding in pixels (default: 120)
    • getForcedHeightPadding

      public int getForcedHeightPadding()
      Gets the current forced height padding.
      Returns:
      The padding in pixels
    • buildDisplayScript

      public void buildDisplayScript(StringBuilder sb)
      Builds the display script for full height resizing functionality.
      Parameters:
      sb - The StringBuilder to append the script to