How hugoquinn2/fxpopup works
Main Components
a) Core Components Layer:
• FxPopup Controller (central component)
• Message System
• Form System
• Theme Management
b) Configuration Layer:
• FxPopupConfig
• StyleConfig
• FieldData
c) Service Layer:
• OpenStreetMapService
• SVGLoader
• ThemeDetector
Component Relationships
┌─────────────────────────────────────── UI Layer ───────────────────────────────────────┐
• ┌─── Message UI ───┐ ┌─── Form UI ───┐ │
• Popup Views │ │ - Auto Forms │ │
• FXML Layout │ │ - Validation │ │
• ┘ └───────────────┘ │
• Core Controller Layer ─────────────────────────────────────┤
• ┌─── FxPopup ────┐ ┌─── Message System ───┐ ┌─── Form System ────┐ │
• MessageField │ │ - FxPopupForm │ │
• Main Control │◄───►│ - MessageForm │ │ - Form Generation │ │
• Center │ │ - Message Handling │ │ - Validation │ │
• ┘ └───────────────────┘ └──────────────────┘ │
• Service Layer ──────────────────────────────────────────┤
• ┌─── Theme Service ──┐ ┌─── SVG Service ───┐ ┌─── Map Service ────┐ │
• Style Loading │ │ - SVG Processing │ │ Integration │ │
• ┘ └─────────────────┘ └──────────────────┘ │
• Configuration Layer ───────────────────────────────────────┤
• ┌─── Config Objects ─┐ ┌─── Constants ────┐ │
• FxPopupConfig │ │ - FieldType │ │
• StyleConfig │ │ - MessageType │ │
• FieldData │ │ - Theme │ │
• ┘ └────────────────┘ │
• ┘
Important Elements to Highlight
• Bidirectional flow between FxPopup and Message/Form systems
• Theme application flow from Theme Service to UI components
• Configuration injection paths
b) External Dependencies:
• JavaFX framework integration
• FXML resource loading
• CSS theme files
Notes for Implementation Details
• How the library integrates with host applications
• Where custom implementations can be plugged in
• Points where theme customization is possible
• Error handling flow