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 TypeMethodDescriptionboolean
isModal()
void
show()
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, wait
Methods 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.ExceptionDialogBuilder
Sets exception object.- Specified by:
withThrowable
in interfaceDialogs.ExceptionDialogBuilder
- Parameters:
throwable
- throwable- Returns:
- builder
-
getThrowable
- Specified by:
getThrowable
in interfaceDialogs.ExceptionDialogBuilder
- Returns:
- throwable
-
withCaption
Description copied from interface:Dialogs.HasCaption
Sets caption text.- Specified by:
withCaption
in interfaceDialogs.HasCaption<Dialogs.ExceptionDialogBuilder>
- Parameters:
caption
- caption text- Returns:
- builder
-
getCaption
- Specified by:
getCaption
in interfaceDialogs.HasCaption<Dialogs.ExceptionDialogBuilder>
- Returns:
- caption text
-
withMessage
Description copied from interface:Dialogs.HasMessage
Sets message text.- Specified by:
withMessage
in interfaceDialogs.HasMessage<Dialogs.ExceptionDialogBuilder>
- Parameters:
message
- message text- Returns:
- builder
-
getMessage
- Specified by:
getMessage
in interfaceDialogs.HasMessage<Dialogs.ExceptionDialogBuilder>
- Returns:
- message text
-
isModal
public boolean isModal()- Specified by:
isModal
in interfaceDialogs.HasModal<Dialogs.ExceptionDialogBuilder>
- Returns:
- true if window is modal
-
withModal
Description copied from interface:Dialogs.HasModal
Sets dialog modality. When a modal window is open, components outside that window cannot be accessed.- Specified by:
withModal
in interfaceDialogs.HasModal<Dialogs.ExceptionDialogBuilder>
- Parameters:
modal
- modal flag- Returns:
- builder
-
show
public void show()Description copied from interface:Dialogs.ExceptionDialogBuilder
Shows the dialog.- Specified by:
show
in interfaceDialogs.ExceptionDialogBuilder
-