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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected JmixButtonprotected JmixButtonprotected com.vaadin.flow.component.dialog.Dialogprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected booleanprotected static final Stringprotected Messagesprotected static final Stringprotected Notificationsprotected ScreenRegistryprotected static final Stringprotected com.vaadin.flow.dom.Elementprotected Throwableprotected static final Stringprotected UiComponentsprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected JmixButtonprotected com.vaadin.flow.component.Componentprotected JmixButtonprotected JmixButtonprotected com.vaadin.flow.component.dialog.Dialogprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected com.vaadin.flow.component.html.Headerprotected com.vaadin.flow.component.button.Buttonprotected com.vaadin.flow.dom.ElementcreateMessageTextArea(String message) protected com.vaadin.flow.dom.ElementcreateStackTraceTextArea(String stackTrace) protected voidfocusTextArea(com.vaadin.flow.dom.Element textArea) protected StringgetMessage(Throwable rootCause) protected StringgetStackTrace(Throwable throwable) protected voidprotected voidprotected voidonCloseButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected voidonCopyButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected voidonDetailsButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected voidonHeaderCloseButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) voidopen()Opens the exception dialog.voidsetMessages(Messages messages) voidsetNotifications(Notifications notifications) voidsetScreenRegistry(ScreenRegistry screenRegistry) protected voidsetStackTraceVisible(boolean visible) protected voidsetTextAreaSelectionRange(com.vaadin.flow.dom.Element textArea, int start, int end) voidsetUiComponents(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:
afterPropertiesSetin 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)
-