Class CardViewSelectionSummary

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

public class CardViewSelectionSummary extends Object
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 Details

    • CardViewSelectionSummary

      public CardViewSelectionSummary(CardView cardView)
      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

      public void updateSummary(SelectionSummaryProvider provider)
      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).