Package org.opencms.ui.favorites
Interface I_CmsFavoriteContext
- All Known Implementing Classes:
- CmsExplorerFavoriteContext,- CmsPageEditorFavoriteContext
public interface I_CmsFavoriteContext
Interface the favorite dialog uses to interact with the rest of the application.
- 
Method SummaryModifier and TypeMethodDescriptionvoidchangeProject(CmsUUID id) 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.
- 
Method Details- 
changeProjectChange the project to one with the given id.- Parameters:
- id- the project id
 
- 
changeSiteChanges current site.- Parameters:
- option- the site selector option
 
- 
setDialogSets the dialog instance.This must be called by the favorite dialog when it is loaded. - Parameters:
- component- the favorite dialog
 
- 
closevoid close()Closes the favorite dialog.
- 
getFavoriteForCurrentLocationGets 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.- Returns:
- an optional favorite entry
 
- 
openFavoriteOpens the favorite location.- Parameters:
- entry- the favorite entry whose location should be opened
 
 
-