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

    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
  • 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
    • getDialog

      public com.vaadin.flow.component.dialog.Dialog getDialog()
      Returns:
      Dialog instance
    • getContent

      public com.vaadin.flow.component.Component getContent()
      Returns:
      the Dialog content
    • getButtons

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