public class CmsExplorerFavoriteContext extends java.lang.Object implements I_CmsFavoriteContext
| Constructor and Description |
|---|
CmsExplorerFavoriteContext(CmsObject cms,
CmsFileExplorer explorer)
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 CmsExplorerFavoriteContext(CmsObject cms, CmsFileExplorer explorer)
cms - the current CMS contextexplorer - the current file explorer instancepublic 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)