Class CardViewSelectionSummary
java.lang.Object
overit.geocallapp.utilities.ux.ui.container.cardview.CardViewSelectionSummary
Helper class that provides selection summary functionality for CardView components.
This class encapsulates all selection summary related logic, making it reusable
across different CardView implementations while maintaining clean separation of concerns.
- Since:
- 21.0
-
Constructor Summary
ConstructorsConstructorDescriptionCardViewSelectionSummary(CardView cardView) Creates a new selection summary instance for the given CardView. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.ecs.ElementaddSummaryToFrame(org.apache.ecs.Element frame) Adds the selection summary footer to the frame element if enabled and not already shown.booleanChecks if selection summary is enabled.voidResets the summaryShown flag (should be called on each getHtml).voidsetEnabled(boolean enabled) Enables or disables selection summary functionality.voidupdateSummary(SelectionSummaryProvider provider) Updates the selection summary using the provided summary provider.
-
Constructor Details
-
CardViewSelectionSummary
Creates a new selection summary instance for the given CardView.- Parameters:
cardView- The CardView that will use this selection summary
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) Enables or disables selection summary functionality.- Parameters:
enabled- true to enable selection summary, false to disable
-
isEnabled
public boolean isEnabled()Checks if selection summary is enabled.- Returns:
- true if selection summary is enabled, false otherwise
-
updateSummary
Updates the selection summary using the provided summary provider.- Parameters:
provider- The provider that generates the summary text
-
addSummaryToFrame
public org.apache.ecs.Element addSummaryToFrame(org.apache.ecs.Element frame) Adds the selection summary footer to the frame element if enabled and not already shown.- Parameters:
frame- The frame element to add the summary to- Returns:
- The frame element (for chaining)
-
resetSummaryShown
public void resetSummaryShown()Resets the summaryShown flag (should be called on each getHtml).
-