Class ExceptionDialog

java.lang.Object
io.jmix.flowui.exception.ExceptionDialog
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class ExceptionDialog extends Object implements org.springframework.beans.factory.InitializingBean
  • Field Details

    • BASE_CLASS_NAME

      protected static final String BASE_CLASS_NAME
      See Also:
    • DIALOG_CONTENT_CLASS_NAME

      protected static final String DIALOG_CONTENT_CLASS_NAME
      See Also:
    • HEADER_CLOSE_BUTTON_CLASS_NAME

      protected static final String HEADER_CLOSE_BUTTON_CLASS_NAME
      See Also:
    • STACKTRACE_TEXTAREA_CLASS_NAME

      protected static final String STACKTRACE_TEXTAREA_CLASS_NAME
      See Also:
    • MESSAGE_TEXTAREA_CLASS_NAME

      protected static final String MESSAGE_TEXTAREA_CLASS_NAME
      See Also:
    • WIDTH

      protected static final String WIDTH
      See Also:
    • EXPANDED_WIDTH

      protected static final String EXPANDED_WIDTH
      See Also:
    • EXPANDED_HEIGHT

      protected static final String EXPANDED_HEIGHT
      See Also:
    • messages

      protected Messages messages
    • viewRegistry

      protected ViewRegistry viewRegistry
    • uiComponents

      protected UiComponents uiComponents
    • notifications

      protected Notifications notifications
    • dialog

      protected com.vaadin.flow.component.dialog.Dialog dialog
    • throwable

      protected Throwable throwable
    • copyButton

      protected JmixButton copyButton
    • detailsButton

      protected JmixButton detailsButton
    • stackTraceTextArea

      protected com.vaadin.flow.dom.Element stackTraceTextArea
    • isStackTraceVisible

      protected boolean isStackTraceVisible
    • exceptionDialogModal

      protected boolean exceptionDialogModal
  • Constructor Details

    • ExceptionDialog

      public ExceptionDialog(Throwable throwable)
  • Method Details

    • setMessages

      @Autowired public void setMessages(Messages messages)
    • setViewRegistry

      @Autowired public void setViewRegistry(ViewRegistry viewRegistry)
    • setUiComponents

      @Autowired public void setUiComponents(UiComponents uiComponents)
    • setNotifications

      @Autowired public void setNotifications(Notifications notifications)
    • setUiProperties

      @Autowired public void setUiProperties(UiProperties uiProperties)
    • afterPropertiesSet

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

      public void open()
      Opens the exception dialog.
    • createDialog

      protected com.vaadin.flow.component.dialog.Dialog createDialog()
    • initDialog

      protected void initDialog()
    • initLayout

      protected void initLayout(com.vaadin.flow.component.dialog.Dialog dialog)
    • initHeader

      protected void initHeader(com.vaadin.flow.component.dialog.Dialog dialog)
    • createHeaderCloseButton

      protected com.vaadin.flow.component.button.Button createHeaderCloseButton()
    • onHeaderCloseButtonClick

      protected void onHeaderCloseButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • createContent

      protected com.vaadin.flow.component.Component createContent()
    • createMessageTextArea

      protected com.vaadin.flow.dom.Element createMessageTextArea(String message)
    • createButtonsPanel

      protected com.vaadin.flow.component.orderedlayout.HorizontalLayout createButtonsPanel()
    • createCloseButton

      protected JmixButton createCloseButton()
    • onCloseButtonClick

      protected void onCloseButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • createDetailsButton

      protected JmixButton createDetailsButton()
    • onDetailsButtonClick

      protected void onDetailsButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • setStackTraceVisible

      protected void setStackTraceVisible(boolean visible)
    • createCopyButton

      protected JmixButton createCopyButton()
    • onCopyButtonClick

      protected void onCopyButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • createStackTraceTextArea

      protected com.vaadin.flow.dom.Element createStackTraceTextArea(String stackTrace)
    • getStackTrace

      protected String getStackTrace(Throwable throwable)
    • getMessage

      protected String getMessage(Throwable rootCause)
    • setTextAreaSelectionRange

      protected void setTextAreaSelectionRange(com.vaadin.flow.dom.Element textArea, int start, int end)
    • focusTextArea

      protected void focusTextArea(com.vaadin.flow.dom.Element textArea)