Package io.jmix.ui.sys
Class DialogsImpl.ExceptionDialogBuilderImpl
java.lang.Object
io.jmix.ui.sys.DialogsImpl.ExceptionDialogBuilderImpl
- All Implemented Interfaces:
Dialogs.ExceptionDialogBuilder,Dialogs.HasCaption<Dialogs.ExceptionDialogBuilder>,Dialogs.HasMessage<Dialogs.ExceptionDialogBuilder>,Dialogs.HasModal<Dialogs.ExceptionDialogBuilder>
- Enclosing class:
- DialogsImpl
public class DialogsImpl.ExceptionDialogBuilderImpl
extends Object
implements Dialogs.ExceptionDialogBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisModal()voidshow()Shows the dialog.withCaption(String caption) Sets caption text.withMessage(String message) Sets message text.withModal(boolean modal) Sets dialog modality.withThrowable(Throwable throwable) Sets exception object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.Dialogs.HasModal
modal
-
Field Details
-
message
-
caption
-
throwable
-
modal
protected boolean modal
-
-
Constructor Details
-
ExceptionDialogBuilderImpl
public ExceptionDialogBuilderImpl()
-
-
Method Details
-
withThrowable
Description copied from interface:Dialogs.ExceptionDialogBuilderSets exception object.- Specified by:
withThrowablein interfaceDialogs.ExceptionDialogBuilder- Parameters:
throwable- throwable- Returns:
- builder
-
getThrowable
- Specified by:
getThrowablein interfaceDialogs.ExceptionDialogBuilder- Returns:
- throwable
-
withCaption
Description copied from interface:Dialogs.HasCaptionSets caption text.- Specified by:
withCaptionin interfaceDialogs.HasCaption<Dialogs.ExceptionDialogBuilder>- Parameters:
caption- caption text- Returns:
- builder
-
getCaption
- Specified by:
getCaptionin interfaceDialogs.HasCaption<Dialogs.ExceptionDialogBuilder>- Returns:
- caption text
-
withMessage
Description copied from interface:Dialogs.HasMessageSets message text.- Specified by:
withMessagein interfaceDialogs.HasMessage<Dialogs.ExceptionDialogBuilder>- Parameters:
message- message text- Returns:
- builder
-
getMessage
- Specified by:
getMessagein interfaceDialogs.HasMessage<Dialogs.ExceptionDialogBuilder>- Returns:
- message text
-
isModal
public boolean isModal()- Specified by:
isModalin interfaceDialogs.HasModal<Dialogs.ExceptionDialogBuilder>- Returns:
- true if window is modal
-
withModal
Description copied from interface:Dialogs.HasModalSets dialog modality. When a modal window is open, components outside that window cannot be accessed.- Specified by:
withModalin interfaceDialogs.HasModal<Dialogs.ExceptionDialogBuilder>- Parameters:
modal- modal flag- Returns:
- builder
-
show
public void show()Description copied from interface:Dialogs.ExceptionDialogBuilderShows the dialog.- Specified by:
showin interfaceDialogs.ExceptionDialogBuilder
-