public class BaseEditorBean.ConfirmationController extends java.lang.Object implements IConfirmationDialogController
ConfirmationController
is the controller class for the Confirmation Dialog. It implements the
required IConfirmationDialogController
interface.IConfirmationDialogController
Constructor and Description |
---|
BaseEditorBean.ConfirmationController() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
cancelPressed()
Defines the action handler for the Cancel pressed event.
|
java.lang.String |
canLeave(java.lang.String nextView,
com.liferay.portal.model.BaseModel<?> nextInput)
Intercepts navigation from this view to another by checking if the current editor is dirty.
|
boolean |
isPopupVisible()
If the controller returns true the associated confirmation dialog is shown, otherwise it is hidden.
|
java.lang.String |
okPressed()
Defines the action handler for the OK pressed event.
|
void |
setPopupVisible(boolean value)
Sets the popup visible.
|
public BaseEditorBean.ConfirmationController()
public boolean isPopupVisible()
isPopupVisible
in interface IOkCancelDialog
public void setPopupVisible(boolean value)
value
- the new popup visiblepublic java.lang.String okPressed()
okPressed
in interface IOkCancelDialog
public java.lang.String cancelPressed()
cancelPressed
in interface IOkCancelDialog
public java.lang.String canLeave(java.lang.String nextView, com.liferay.portal.model.BaseModel<?> nextInput)
canLeave
in interface IConfirmationDialogController
nextView
- the id of the view to navigate tonextInput
- the editor input for the view being navigated to