Class DialogInfo

java.lang.Object
io.jmix.flowui.testassist.dialog.DialogInfo

public class DialogInfo extends Object
POJO class for storing dialog information.
  • 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 final com.vaadin.flow.component.dialog.Dialog
     
    protected List<com.vaadin.flow.component.Component>
     
    protected List<com.vaadin.flow.component.Component>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DialogInfo(com.vaadin.flow.component.dialog.Dialog dialog)
    Creates a DialogInfo of the passed Dialog.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<com.vaadin.flow.component.button.Button>
    Returns the button list if the dialog footer contains only buttons (e.g., message dialog, option dialog, etc.).
    com.vaadin.flow.component.Component
    Returns the Dialog content component (e.g., for message dialog, option dialog, etc.).
    List<com.vaadin.flow.component.Component>
    The list of content components of the Dialog.
    com.vaadin.flow.component.dialog.Dialog
     
    List<com.vaadin.flow.component.Component>
    The list of footer components of the Dialog.
    List<com.vaadin.flow.component.Component>
    The list of header components of the Dialog if the builder supports setting components to the header (e.g.
    protected DialogInfo
    withButtons(List<com.vaadin.flow.component.button.Button> buttons)
    Sets the buttons list of the Dialog.
    protected DialogInfo
    withContent(com.vaadin.flow.component.Component content)
    Sets the content of the Dialog.
    protected DialogInfo
    withContentComponents(List<com.vaadin.flow.component.Component> contentComponents)
    Sets the contentComponents list of the Dialog.
    protected DialogInfo
    withFooterComponents(List<com.vaadin.flow.component.Component> footerComponents)
    Sets the footerComponents list of the Dialog.
    protected DialogInfo
    withHeaderComponents(List<com.vaadin.flow.component.Component> headerComponents)
    Sets the headerComponents list of the Dialog.

    Methods inherited from class java.lang.Object

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

    • dialog

      protected final com.vaadin.flow.component.dialog.Dialog dialog
    • 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

    • DialogInfo

      public DialogInfo(com.vaadin.flow.component.dialog.Dialog dialog)
      Creates a DialogInfo of the passed Dialog.
      Parameters:
      dialog - Dialog to create DialogInfo
  • Method Details

    • withContent

      protected DialogInfo withContent(com.vaadin.flow.component.Component content)
      Sets the content of the Dialog.
      Parameters:
      content - content to set
      Returns:
      this
    • withButtons

      protected DialogInfo withButtons(List<com.vaadin.flow.component.button.Button> buttons)
      Sets the buttons list of the Dialog.
      Parameters:
      buttons - list of the buttons to set
      Returns:
      this
    • withHeaderComponents

      protected DialogInfo withHeaderComponents(List<com.vaadin.flow.component.Component> headerComponents)
      Sets the headerComponents list of the Dialog.
      Parameters:
      headerComponents - list of the header components to set
      Returns:
      this
    • withContentComponents

      protected DialogInfo withContentComponents(List<com.vaadin.flow.component.Component> contentComponents)
      Sets the contentComponents list of the Dialog.
      Parameters:
      contentComponents - list of the content components to set
      Returns:
      this
    • withFooterComponents

      protected DialogInfo withFooterComponents(List<com.vaadin.flow.component.Component> footerComponents)
      Sets the footerComponents list of the Dialog.
      Parameters:
      footerComponents - list of the footer components to set
      Returns:
      this
    • getDialog

      public com.vaadin.flow.component.dialog.Dialog getDialog()
      Returns:
      Dialog instance
    • 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:
      the Dialog content
    • getButtons

      public List<com.vaadin.flow.component.button.Button> getButtons()
      Returns the button list if the dialog footer contains only buttons (e.g., message dialog, option dialog, etc.).
      Returns:
      list of the Dialog buttons
    • getHeaderComponents

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

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

      public List<com.vaadin.flow.component.Component> getFooterComponents()
      The list of footer components of the Dialog.
      Returns:
      list of footer components