Class CardViewFullHeightResizer
java.lang.Object
overit.geocallapp.utilities.ux.ui.container.cardview.CardViewFullHeightResizer
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 Summary
ConstructorsConstructorDescriptionCardViewFullHeightResizer(CardView cardView) Creates a new full height resizer instance for the given CardView. -
Method Summary
Modifier and TypeMethodDescriptionvoidBuilds the display script for full height resizing functionality.intGets the current forced height padding.booleanChecks if full height resizer is enabled.voidsetEnabled(boolean enabled) Enables or disables full height resizer functionality.voidsetForcedHeightPadding(int padding) Sets the forced height padding (space reserved for UI elements).
-
Constructor Details
-
CardViewFullHeightResizer
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
Builds the display script for full height resizing functionality.- Parameters:
sb- The StringBuilder to append the script to
-