Class ErrorPopupPresenter
- java.lang.Object
-
- org.uberfire.client.workbench.widgets.common.ErrorPopupPresenter
-
@ApplicationScoped public class ErrorPopupPresenter extends Object
Shows simple text-only error messages in a modal popup dialog that sits above the workbench. This is designed to be used only for reporting error conditions; to make a full-featured popup UI, seeWorkbenchPopup.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceErrorPopupPresenter.ViewThe interface that popup views implement.
-
Constructor Summary
Constructors Constructor Description ErrorPopupPresenter(ErrorPopupPresenter.View view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshowMessage(String msg)Shows the given message in a modal popup that appears above all other workbench contents.voidshowMessage(String msg, org.uberfire.mvp.Command afterShow, org.uberfire.mvp.Command afterClose)Shows the given message in a modal popup that appears above all other workbench contents.
-
-
-
Constructor Detail
-
ErrorPopupPresenter
@Inject public ErrorPopupPresenter(ErrorPopupPresenter.View view)
-
-
Method Detail
-
showMessage
public void showMessage(String msg, org.uberfire.mvp.Command afterShow, org.uberfire.mvp.Command afterClose)
Shows the given message in a modal popup that appears above all other workbench contents.- Parameters:
msg- The message to display as plain text. HTML tags are not interpreted, and newlines are rendered as newlines.afterShow- The command to invoke once the dialog has been displayed. Must not be null.afterClose- The command to invoke once the dialog has been closed. Must not be null.
-
showMessage
public void showMessage(String msg)
Shows the given message in a modal popup that appears above all other workbench contents.- Parameters:
msg- The message to display as plain text. HTML tags are not interpreted, and newlines are rendered as newlines.
-
-