public class CmsPageEditorFavoriteContext extends java.lang.Object implements I_CmsFavoriteContext
| Constructor and Description |
|---|
CmsPageEditorFavoriteContext(CmsEmbeddedDialogContext context,
com.vaadin.server.VaadinRequest req)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the favorite dialog.
|
java.util.Optional<CmsFavoriteEntry> |
getFavoriteForCurrentLocation()
Gets the favorite entry for the current location, as an Optional.
|
void |
openFavorite(CmsFavoriteEntry entry)
Opens the favorite location.
|
void |
setDialog(com.vaadin.ui.Component component)
Sets the dialog instance.
|
public CmsPageEditorFavoriteContext(CmsEmbeddedDialogContext context, com.vaadin.server.VaadinRequest req)
context - the embedded dialog contextreq - the current requestpublic void close()
I_CmsFavoriteContextclose in interface I_CmsFavoriteContextI_CmsFavoriteContext.close()public java.util.Optional<CmsFavoriteEntry> getFavoriteForCurrentLocation()
I_CmsFavoriteContextgetFavoriteForCurrentLocation in interface I_CmsFavoriteContextI_CmsFavoriteContext.getFavoriteForCurrentLocation()public void openFavorite(CmsFavoriteEntry entry)
I_CmsFavoriteContextopenFavorite in interface I_CmsFavoriteContextentry - the favorite entry whose location should be openedI_CmsFavoriteContext.openFavorite(org.opencms.ui.favorites.CmsFavoriteEntry)public void setDialog(com.vaadin.ui.Component component)
I_CmsFavoriteContextThis must be called by the favorite dialog when it is loaded.
setDialog in interface I_CmsFavoriteContextcomponent - the favorite dialogI_CmsFavoriteContext.setDialog(com.vaadin.ui.Component)