Package org.opencms.ui.favorites
Class CmsPageEditorFavoriteContext
java.lang.Object
org.opencms.ui.favorites.CmsPageEditorFavoriteContext
- All Implemented Interfaces:
I_CmsFavoriteContext
Favorite dialog context for the case where the dialog is opened from the page editor,
in an iframe.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeProject(CmsUUID value) Change the project to one with the given id.voidChanges current site.voidclose()Closes the favorite dialog.Gets the favorite entry for the current location, as an Optional.voidopenFavorite(CmsFavoriteEntry entry) Opens the favorite location.voidsetDialog(com.vaadin.ui.Component component) Sets the dialog instance.
-
Constructor Details
-
CmsPageEditorFavoriteContext
Creates a new instance.- Parameters:
context- the embedded dialog contextreq- the current request
-
-
Method Details
-
changeProject
Description copied from interface:I_CmsFavoriteContextChange the project to one with the given id.- Specified by:
changeProjectin interfaceI_CmsFavoriteContext- Parameters:
value- the project id- See Also:
-
changeSite
Description copied from interface:I_CmsFavoriteContextChanges current site.- Specified by:
changeSitein interfaceI_CmsFavoriteContext- Parameters:
value- the site selector option- See Also:
-
close
Description copied from interface:I_CmsFavoriteContextCloses the favorite dialog.- Specified by:
closein interfaceI_CmsFavoriteContext- See Also:
-
getFavoriteForCurrentLocation
Description copied from interface:I_CmsFavoriteContextGets the favorite entry for the current location, as an Optional. If the result is empty, the current location can not be used as a favorite.- Specified by:
getFavoriteForCurrentLocationin interfaceI_CmsFavoriteContext- Returns:
- an optional favorite entry
- See Also:
-
openFavorite
Description copied from interface:I_CmsFavoriteContextOpens the favorite location.- Specified by:
openFavoritein interfaceI_CmsFavoriteContext- Parameters:
entry- the favorite entry whose location should be opened- See Also:
-
setDialog
Description copied from interface:I_CmsFavoriteContextSets the dialog instance.This must be called by the favorite dialog when it is loaded.
- Specified by:
setDialogin interfaceI_CmsFavoriteContext- Parameters:
component- the favorite dialog- See Also:
-