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
ConstructorDescriptionCreates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeProject
(CmsUUID value) Change the project to one with the given id.void
Changes current site.void
close()
Closes the favorite dialog.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.
-
Constructor Details
-
CmsPageEditorFavoriteContext
Creates a new instance.- Parameters:
context
- the embedded dialog contextreq
- the current request
-
-
Method Details
-
changeProject
Description copied from interface:I_CmsFavoriteContext
Change the project to one with the given id.- Specified by:
changeProject
in interfaceI_CmsFavoriteContext
- Parameters:
value
- the project id- See Also:
-
changeSite
Description copied from interface:I_CmsFavoriteContext
Changes current site.- Specified by:
changeSite
in interfaceI_CmsFavoriteContext
- Parameters:
value
- the site selector option- See Also:
-
close
Description copied from interface:I_CmsFavoriteContext
Closes the favorite dialog.- Specified by:
close
in interfaceI_CmsFavoriteContext
- See Also:
-
getFavoriteForCurrentLocation
Description copied from interface:I_CmsFavoriteContext
Gets 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:
getFavoriteForCurrentLocation
in interfaceI_CmsFavoriteContext
- Returns:
- an optional favorite entry
- See Also:
-
openFavorite
Description copied from interface:I_CmsFavoriteContext
Opens the favorite location.- Specified by:
openFavorite
in interfaceI_CmsFavoriteContext
- Parameters:
entry
- the favorite entry whose location should be opened- See Also:
-
setDialog
Description copied from interface:I_CmsFavoriteContext
Sets the dialog instance.This must be called by the favorite dialog when it is loaded.
- Specified by:
setDialog
in interfaceI_CmsFavoriteContext
- Parameters:
component
- the favorite dialog- See Also:
-