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 booleanprotected static final Stringprotected Messagesprotected Notificationsprotected static final Stringprotected com.vaadin.flow.dom.Elementprotected Throwableprotected UiComponentsprotected ViewRegistryprotected 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.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 voidinitHeader(com.vaadin.flow.component.dialog.Dialog dialog) protected voidinitLayout(com.vaadin.flow.component.dialog.Dialog dialog) protected 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) protected voidsetStackTraceVisible(boolean visible) protected voidsetTextAreaSelectionRange(com.vaadin.flow.dom.Element textArea, int start, int end) voidsetUiComponents(UiComponents uiComponents) voidsetViewRegistry(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:
afterPropertiesSetin 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)
-