@ApplicationScoped public class ErrorReportPopoverPresenter extends Object implements ErrorReportPopover.Presenter
Modifier and Type | Field and Description |
---|---|
protected ErrorReportPopoverView |
errorReportPopupView |
Constructor and Description |
---|
ErrorReportPopoverPresenter() |
Modifier and Type | Method and Description |
---|---|
int |
getActualHeight()
Retrieve the actual height of the
ErrorReportPopover |
void |
hide()
Makes this popover container(and the main content along with it) invisible.
|
boolean |
isShown()
Returns the status of the
ErrorReportPopover (open or closed) |
void |
setup(String errorTitleText,
String errorContentText,
String keepText,
int mx,
int my,
PopoverView.Position position)
Method to set/update status of the
ErrorReportPopover before actually showing the view. |
void |
setup(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 the
ErrorReportPopover before actually showing the view. |
void |
show()
Method that actually show the view
|
@Inject protected ErrorReportPopoverView errorReportPopupView
public void setup(String errorTitleText, String errorContentText, String keepText, String applyText, org.uberfire.mvp.Command applyCommand, int mx, int my, PopoverView.Position position)
ErrorReportPopover.Presenter
ErrorReportPopover
before 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)setup
in interface ErrorReportPopover.Presenter
mx
- x position of the replacemy
- y position of the popoverposition
- position where the popover is put (LEFT or RIGHT)public void setup(String errorTitleText, String errorContentText, String keepText, int mx, int my, PopoverView.Position position)
ErrorReportPopover.Presenter
ErrorReportPopover
before 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)setup
in interface ErrorReportPopover.Presenter
mx
- x position of the replacemy
- y position of the popoverposition
- position where the popover is put (LEFT or RIGHT)public void show()
ErrorReportPopover.Presenter
show
in interface ErrorReportPopover.Presenter
public void hide()
ErrorReportPopover.Presenter
hide
in interface ErrorReportPopover.Presenter
public boolean isShown()
ErrorReportPopover.Presenter
ErrorReportPopover
(open or closed)isShown
in interface ErrorReportPopover.Presenter
public int getActualHeight()
ErrorReportPopover.Presenter
ErrorReportPopover
getActualHeight
in interface ErrorReportPopover.Presenter
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.