Class ErrorReportPopoverPresenter
- java.lang.Object
-
- org.drools.workbench.screens.scenariosimulation.client.popover.ErrorReportPopoverPresenter
-
- All Implemented Interfaces:
ErrorReportPopover.Presenter
@ApplicationScoped public class ErrorReportPopoverPresenter extends Object implements ErrorReportPopover.Presenter
-
-
Field Summary
Fields Modifier and Type Field Description protected ErrorReportPopoverViewerrorReportPopupView
-
Constructor Summary
Constructors Constructor Description ErrorReportPopoverPresenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetActualHeight()Retrieve the actual height of theErrorReportPopovervoidhide()Makes this popover container(and the main content along with it) invisible.booleanisShown()Returns the status of theErrorReportPopover(open or closed)voidsetup(String errorTitleText, String errorContentText, String keepText, int mx, int my, PopoverView.Position position)Method to set/update status of theErrorReportPopoverbefore actually showing the view.voidsetup(String errorTitleText, String errorContentText, String keepText, String applyText, org.uberfire.mvp.Command applyCommand, int mx, int my, PopoverView.Position position)Method to set/update status of theErrorReportPopoverbefore actually showing the view.voidshow()Method that actually show the view
-
-
-
Field Detail
-
errorReportPopupView
@Inject protected ErrorReportPopoverView errorReportPopupView
-
-
Method Detail
-
setup
public void setup(String errorTitleText, String errorContentText, String keepText, String applyText, org.uberfire.mvp.Command applyCommand, int mx, int my, PopoverView.Position position)
Description copied from interface:ErrorReportPopover.PresenterMethod to set/update status of theErrorReportPopoverbefore actually showing the view. Implemented to decouple this setup from the actual show, to be able to eventually add other modifications (e.g. change vertical position based on the actual height, that is available only after this method has been invoked)- Specified by:
setupin interfaceErrorReportPopover.Presentermx- x position of the replacemy- y position of the popoverposition- position where the popover is put (LEFT or RIGHT)
-
setup
public void setup(String errorTitleText, String errorContentText, String keepText, int mx, int my, PopoverView.Position position)
Description copied from interface:ErrorReportPopover.PresenterMethod to set/update status of theErrorReportPopoverbefore actually showing the view. Implemented to decouple this setup from the actual show, to be able to eventually add other modifications (e.g. change vertical position based on the actual height, that is available only after this method has been invoked)- Specified by:
setupin interfaceErrorReportPopover.Presentermx- x position of the replacemy- y position of the popoverposition- position where the popover is put (LEFT or RIGHT)
-
show
public void show()
Description copied from interface:ErrorReportPopover.PresenterMethod that actually show the view- Specified by:
showin interfaceErrorReportPopover.Presenter
-
hide
public void hide()
Description copied from interface:ErrorReportPopover.PresenterMakes this popover container(and the main content along with it) invisible. Has no effect if the popover is not already showing.- Specified by:
hidein interfaceErrorReportPopover.Presenter
-
isShown
public boolean isShown()
Description copied from interface:ErrorReportPopover.PresenterReturns the status of theErrorReportPopover(open or closed)- Specified by:
isShownin interfaceErrorReportPopover.Presenter- Returns:
- true if shown, false otherwise
-
getActualHeight
public int getActualHeight()
Description copied from interface:ErrorReportPopover.PresenterRetrieve the actual height of theErrorReportPopover- Specified by:
getActualHeightin interfaceErrorReportPopover.Presenter- Returns:
-
-