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 boolean
protected static final String
protected Messages
protected Notifications
protected static final String
protected com.vaadin.flow.dom.Element
protected Throwable
protected UiComponents
protected ViewRegistry
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.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
initHeader
(com.vaadin.flow.component.dialog.Dialog dialog) protected void
initLayout
(com.vaadin.flow.component.dialog.Dialog dialog) 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) protected void
setStackTraceVisible
(boolean visible) protected void
setTextAreaSelectionRange
(com.vaadin.flow.dom.Element textArea, int start, int end) void
setUiComponents
(UiComponents uiComponents) void
setViewRegistry
(ViewRegistry viewRegistry)
-
Field Details
-
BASE_CLASS_NAME
- See Also:
-
DIALOG_CONTENT_CLASS_NAME
- See Also:
-
HEADER_CLOSE_BUTTON_CLASS_NAME
- See Also:
-
STACKTRACE_TEXTAREA_CLASS_NAME
- See Also:
-
MESSAGE_TEXTAREA_CLASS_NAME
- See Also:
-
WIDTH
- See Also:
-
EXPANDED_WIDTH
- See Also:
-
EXPANDED_HEIGHT
- See Also:
-
messages
-
viewRegistry
-
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
-
setViewRegistry
-
setUiComponents
-
setNotifications
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.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
-
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)
-