Class DialogOpenedEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.flowui.event.dialog.DialogOpenedEvent
All Implemented Interfaces:
Serializable

public class DialogOpenedEvent extends org.springframework.context.ApplicationEvent
Application event that is sent after the dialog is shown.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected List<com.vaadin.flow.component.button.Button>
     
    protected com.vaadin.flow.component.Component
     
    protected List<com.vaadin.flow.component.Component>
     
    protected List<com.vaadin.flow.component.Component>
     
    protected List<com.vaadin.flow.component.Component>
     

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    DialogOpenedEvent(com.vaadin.flow.component.dialog.Dialog dialog, com.vaadin.flow.component.Component content, List<com.vaadin.flow.component.button.Button> buttons)
     
    DialogOpenedEvent(com.vaadin.flow.component.dialog.Dialog dialog, List<com.vaadin.flow.component.Component> headerComponents, List<com.vaadin.flow.component.Component> contentComponents, List<com.vaadin.flow.component.Component> footerComponents)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<com.vaadin.flow.component.button.Button>
     
    com.vaadin.flow.component.Component
    Returns the dialog content component (e.g., for message dialog, option dialog, etc.).
    List<com.vaadin.flow.component.Component>
    Returns content components of the opened dialog.
    List<com.vaadin.flow.component.Component>
    Returns footer components of the opened dialog if the builder of the dialog supports setting components to the footer (e.g.
    List<com.vaadin.flow.component.Component>
    Returns header components of the opened dialog if the builder of the dialog supports setting components to the header (e.g.
    com.vaadin.flow.component.dialog.Dialog
     

    Methods inherited from class org.springframework.context.ApplicationEvent

    getTimestamp

    Methods inherited from class java.util.EventObject

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • content

      protected com.vaadin.flow.component.Component content
    • buttons

      protected List<com.vaadin.flow.component.button.Button> buttons
    • headerComponents

      protected List<com.vaadin.flow.component.Component> headerComponents
    • contentComponents

      protected List<com.vaadin.flow.component.Component> contentComponents
    • footerComponents

      protected List<com.vaadin.flow.component.Component> footerComponents
  • Constructor Details

    • DialogOpenedEvent

      public DialogOpenedEvent(com.vaadin.flow.component.dialog.Dialog dialog, com.vaadin.flow.component.Component content, List<com.vaadin.flow.component.button.Button> buttons)
    • DialogOpenedEvent

      public DialogOpenedEvent(com.vaadin.flow.component.dialog.Dialog dialog, List<com.vaadin.flow.component.Component> headerComponents, List<com.vaadin.flow.component.Component> contentComponents, List<com.vaadin.flow.component.Component> footerComponents)
  • Method Details

    • getSource

      public com.vaadin.flow.component.dialog.Dialog getSource()
      Overrides:
      getSource in class EventObject
    • getContent

      public com.vaadin.flow.component.Component getContent()
      Returns the dialog content component (e.g., for message dialog, option dialog, etc.). If the dialog content includes multiple components, the first component is returned.
      Returns:
      content of the opened dialog
    • getHeaderComponents

      public List<com.vaadin.flow.component.Component> getHeaderComponents()
      Returns header components of the opened dialog if the builder of the dialog supports setting components to the header (e.g. Dialogs.SideDialogBuilder).
      Returns:
      header components
    • getContentComponents

      public List<com.vaadin.flow.component.Component> getContentComponents()
      Returns content components of the opened dialog.
      Returns:
      content components
    • getFooterComponents

      public List<com.vaadin.flow.component.Component> getFooterComponents()
      Returns footer components of the opened dialog if the builder of the dialog supports setting components to the footer (e.g. Dialogs.SideDialogBuilder).
      Returns:
      footer components
    • getButtons

      public List<com.vaadin.flow.component.button.Button> getButtons()
      Returns:
      list of dialog buttons