java.lang.Object
no.ntnu.principes.event.PrincipesEvent<ModalResult>
no.ntnu.principes.event.navigation.CloseModalEvent
Represents an event for closing a modal within the application.
This event encapsulates the identifier of the modal being closed
and the result of the modal action in the form of a
ModalResult.
The event is designed to notify listeners when a modal has been closed, providing contextual information about the closure.
-
Constructor Summary
ConstructorsConstructorDescriptionCloseModalEvent(String modalId, ModalResult payload) Constructs aCloseModalEventwith the specified modal identifier and payload. -
Method Summary
Modifier and TypeMethodDescriptionstatic CloseModalEventof(String modalId, ModalResult payload) Creates a newCloseModalEventinstance with the specified modal identifier and result payload.
-
Constructor Details
-
CloseModalEvent
Constructs aCloseModalEventwith the specified modal identifier and payload. This event signifies the closure of a modal and includes data relevant to the result of the modal action.- Parameters:
modalId- the unique identifier of the modal being closedpayload- theModalResultobject containing details about the closure result
-
-
Method Details
-
of
Creates a newCloseModalEventinstance with the specified modal identifier and result payload.- Parameters:
modalId- the unique identifier of the modal being closedpayload- contains the result of the modal's operation, encapsulated in aModalResult- Returns:
- a new instance of
CloseModalEventwith the provided modal identifier and result payload
-