Class CardLayoutProcessor

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

public class CardLayoutProcessor extends Object
Engine for processing CardLayout templates and replacing placeholders with field values. This processor: 1. Collects all named fields (CardSpan, CardString, etc.) 2. Generates HTML for each field 3. Replaces placeholders in the template with generated HTML 4. Supports Handlebars conditional rendering ({{#if field}}...{{/if}}) 5. Applies modifiers like tolower, toupper 6. Integrates CSS styles
Since:
21.0
  • Field Details

  • Constructor Details

    • CardLayoutProcessor

      public CardLayoutProcessor(Container container)
      Processor constructor
      Parameters:
      container - The CardView container that contains the components
  • Method Details

    • processLayout

      public String processLayout(String layoutName, Map<String,Object> data)
      Processes a layout with the provided data
      Parameters:
      layoutName - The name of the layout to process
      data - The data to populate the fields
      Returns:
      The processed HTML
    • getLayoutByName

      public String getLayoutByName(String layoutName)
      Gets a layout name by name (checks if layout exists)
      Parameters:
      layoutName - The layout name
      Returns:
      The layout name if it exists, null otherwise
    • hasLayouts

      public boolean hasLayouts()
      Checks if the processor has configured layouts
      Returns:
      true if there are available layouts