Class SideDialog

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<JmixSideDialogOverlay>
io.jmix.flowui.kit.component.sidedialog.JmixSideDialog
io.jmix.flowui.component.sidedialog.SideDialog
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasStyle, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class SideDialog extends JmixSideDialog implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
The composite component represents a side dialog with a header, content area, and footer. It functions as a drawer panel.

The side dialog manages the opening and closing of the dialog and its content, featuring a pop-out animation. It can be configured to appear relative to the application window (see SideDialogPosition).

See Also:
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
  • Constructor Details

    • SideDialog

      public SideDialog()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • initComponent

      protected void initComponent()
    • addOpenedChangeListener

      public com.vaadin.flow.shared.Registration addOpenedChangeListener(com.vaadin.flow.component.ComponentEventListener<SideDialogOpenedChangeEvent> listener)
      Adds a listener for opened change events.
      Parameters:
      listener - listener to add
      Returns:
      a registration for removing the listener
    • addDialogCloseActionListener

      public com.vaadin.flow.shared.Registration addDialogCloseActionListener(com.vaadin.flow.component.ComponentEventListener<SideDialogCloseActionEvent> listener)
      Add a listener that controls whether the dialog should be closed or not.

      The listener is informed when the user wants to close the dialog by clicking outside the dialog or by pressing escape. Then you can decide whether to close or to keep opened the dialog. It means that dialog won't be closed automatically unless you call JmixSideDialog.close() method explicitly in the listener implementation.

      NOTE: adding this listener changes the behavior of the dialog. Dialog is closed automatically in case there are no any close listeners. And the JmixSideDialog.close() method should be called explicitly to close the dialog in case there are close listeners.

      Parameters:
      listener - listener to add
      Returns:
      a registration for removing the listener