Package io.jmix.flowui.exception
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 Summary
Modifier and TypeFieldDescriptionprotected static final String
protected JmixButton
protected JmixButton
protected com.vaadin.flow.component.dialog.Dialog
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected boolean
protected static final String
protected Messages
protected static final String
protected Notifications
protected ScreenRegistry
protected static final String
protected com.vaadin.flow.dom.Element
protected Throwable
protected static final String
protected UiComponents
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
protected JmixButton
protected com.vaadin.flow.component.Component
protected JmixButton
protected JmixButton
protected com.vaadin.flow.component.dialog.Dialog
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
protected com.vaadin.flow.component.html.Header
protected com.vaadin.flow.component.button.Button
protected com.vaadin.flow.dom.Element
createMessageTextArea
(String message) protected com.vaadin.flow.dom.Element
createStackTraceTextArea
(String stackTrace) protected void
focusTextArea
(com.vaadin.flow.dom.Element textArea) protected String
getMessage
(Throwable rootCause) protected String
getStackTrace
(Throwable throwable) protected void
protected void
protected void
onCloseButtonClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected void
onCopyButtonClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected void
onDetailsButtonClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected void
onHeaderCloseButtonClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) void
open()
Opens the exception dialog.void
setMessages
(Messages messages) void
setNotifications
(Notifications notifications) void
setScreenRegistry
(ScreenRegistry screenRegistry) protected void
setStackTraceVisible
(boolean visible) protected void
setTextAreaSelectionRange
(com.vaadin.flow.dom.Element textArea, int start, int end) void
setUiComponents
(UiComponents uiComponents)
-
Field Details
-
BASE_STYLE_NAME
- See Also:
-
DIALOG_OVERLAY_STYLE_NAME
- See Also:
-
HEADER_STYLE_NAME
- See Also:
-
HEADER_CLOSE_BUTTON_STYLE_NAME
- See Also:
-
TITLE_STYLE_NAME
- See Also:
-
STACKTRACE_TEXTAREA_STYLE_NAME
- See Also:
-
MESSAGE_TEXTAREA_STYLE_NAME
- See Also:
-
MIN_WIDTH
- See Also:
-
WIDTH
- See Also:
-
EXPANDED_WIDTH
- See Also:
-
EXPANDED_HEIGHT
- See Also:
-
messages
-
screenRegistry
-
uiComponents
-
notifications
-
dialog
protected com.vaadin.flow.component.dialog.Dialog dialog -
throwable
-
copyButton
-
detailsButton
-
stackTraceTextArea
protected com.vaadin.flow.dom.Element stackTraceTextArea -
isStackTraceVisible
protected boolean isStackTraceVisible
-
-
Constructor Details
-
ExceptionDialog
-
-
Method Details
-
setMessages
-
setScreenRegistry
-
setUiComponents
-
setNotifications
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
open
public void open()Opens the exception dialog. -
initDialog
protected void initDialog() -
createDialog
protected com.vaadin.flow.component.dialog.Dialog createDialog() -
initLayout
protected void initLayout() -
createDialogOverlay
protected com.vaadin.flow.component.orderedlayout.VerticalLayout createDialogOverlay() -
createHeader
protected com.vaadin.flow.component.html.Header createHeader() -
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
-
createButtonsPanel
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout createButtonsPanel() -
createCloseButton
-
onCloseButtonClick
protected void onCloseButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) -
createDetailsButton
-
onDetailsButtonClick
protected void onDetailsButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) -
setStackTraceVisible
protected void setStackTraceVisible(boolean visible) -
createCopyButton
-
onCopyButtonClick
protected void onCopyButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) -
createStackTraceTextArea
-
getStackTrace
-
getMessage
-
setTextAreaSelectionRange
protected void setTextAreaSelectionRange(com.vaadin.flow.dom.Element textArea, int start, int end) -
focusTextArea
protected void focusTextArea(com.vaadin.flow.dom.Element textArea)
-