Class CardLayoutProcessor
java.lang.Object
overit.geocallapp.utilities.ux.ui.container.cardview.CardLayoutProcessor
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLayoutByName(String layoutName) Gets a layout name by name (checks if layout exists)booleanChecks if the processor has configured layoutsprocessLayout(String layoutName, Map<String, Object> data) Processes a layout with the provided data
-
Field Details
-
LOG
-
-
Constructor Details
-
CardLayoutProcessor
Processor constructor- Parameters:
container- The CardView container that contains the components
-
-
Method Details
-
processLayout
Processes a layout with the provided data- Parameters:
layoutName- The name of the layout to processdata- The data to populate the fields- Returns:
- The processed HTML
-
getLayoutByName
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
-