public final class CmsSitemapView extends A_CmsEntryPoint implements I_CmsSitemapChangeHandler, I_CmsSitemapLoadHandler
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CmsSitemapView.EditorMode
The sitemap editor modes.
|
protected class |
CmsSitemapView.TreeOpenHandler
The sitemap tree open handler.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected CmsLazyTree<CmsSitemapTreeItem> |
m_tree
The displayed sitemap tree.
|
| 构造器和说明 |
|---|
CmsSitemapView() |
| 限定符和类型 | 方法和说明 |
|---|---|
CmsSitemapTreeItem |
create(CmsClientSitemapEntry entry)
Creates a new tree item from the given sitemap entry.
|
CmsSitemapTreeItem |
createSitemapItem(CmsClientSitemapEntry entry)
Creates a sitemap tree item from a client sitemap entry.
|
void |
ensureVisible(CmsSitemapTreeItem item)
Ensures the given item is visible in the viewport.
|
CmsSitemapController |
getController()
Returns the controller.
|
CmsSitemapView.EditorMode |
getEditorMode()
Returns the editor mode.
|
java.lang.String |
getIconForEntry(CmsClientSitemapEntry entry)
Returns the icon class for the given entry depending on the editor mode.
|
static CmsSitemapView |
getInstance()
Returns the instance.
|
CmsPair<java.util.List<CmsClientSitemapEntry>,java.util.List<CmsClientSitemapEntry>> |
getOpenAndClosedDescendants(java.lang.String path)
Gets the list of descendants of a path and splits it into two lists, one containing the sitemap entries whose children have
already been loaded, and those whose children haven't been loaded.
|
protected CmsSitemapTreeItem |
getRootItem()
Gets the sitemap tree item widget which represents the root of the current sitemap.
|
CmsSitemapToolbar |
getToolbar()
Gets the sitemap toolbar.
|
CmsLazyTree<CmsSitemapTreeItem> |
getTree()
Returns the tree.
|
CmsSitemapTreeItem |
getTreeItem(CmsUUID entryId)
Returns the tree entry with the given path.
|
CmsSitemapTreeItem |
getTreeItem(java.lang.String path)
Returns the tree entry with the given path.
|
void |
highlightPath(java.lang.String sitePath)
Highlights the sitemap entry with the given path.
|
boolean |
isNavigationMode()
Returns if the current sitemap editor mode is navigation.
|
void |
onChange(CmsSitemapChangeEvent changeEvent)
Will be triggered when something has changed.
|
void |
onLoad(CmsSitemapLoadEvent event)
Will be triggered when an entry loads its children.
|
void |
onModuleLoad() |
void |
removeDeleted(CmsClientSitemapEntry entry)
Removes deleted entry widget reference.
|
void |
setEditorMode(CmsSitemapView.EditorMode editorMode)
Sets the editor mode.
|
void |
updateDetailPageView(CmsClientSitemapEntry entry)
Updates the detail page view for a given changed entry.
|
void |
updateEntriesById(java.util.Collection<CmsUUID> ids)
Updates the entries whose id is in the given list of ids.
|
enableRemoteExceptionHandlerprotected CmsLazyTree<CmsSitemapTreeItem> m_tree
public static CmsSitemapView getInstance()
public CmsSitemapTreeItem create(CmsClientSitemapEntry entry)
entry - the sitemap entrypublic CmsSitemapTreeItem createSitemapItem(CmsClientSitemapEntry entry)
entry - the entry from which the sitemap tree item should be createdpublic void ensureVisible(CmsSitemapTreeItem item)
item - the item to seepublic CmsSitemapController getController()
public CmsSitemapView.EditorMode getEditorMode()
public java.lang.String getIconForEntry(CmsClientSitemapEntry entry)
entry - the entry to get the icon forpublic CmsPair<java.util.List<CmsClientSitemapEntry>,java.util.List<CmsClientSitemapEntry>> getOpenAndClosedDescendants(java.lang.String path)
path - the path for which the open and closed descendants should be returnedpublic CmsSitemapToolbar getToolbar()
public CmsLazyTree<CmsSitemapTreeItem> getTree()
public CmsSitemapTreeItem getTreeItem(CmsUUID entryId)
entryId - the id of the sitemap entrynull if not foundpublic CmsSitemapTreeItem getTreeItem(java.lang.String path)
path - the path to look fornull if not foundpublic void highlightPath(java.lang.String sitePath)
sitePath - the sitemap path of the entry to highlightpublic boolean isNavigationMode()
true if the current sitemap editor mode is navigationpublic void onChange(CmsSitemapChangeEvent changeEvent)
I_CmsSitemapChangeHandleronChange 在接口中 I_CmsSitemapChangeHandlerchangeEvent - the specific change eventI_CmsSitemapChangeHandler.onChange(org.opencms.ade.sitemap.client.control.CmsSitemapChangeEvent)public void onLoad(CmsSitemapLoadEvent event)
I_CmsSitemapLoadHandleronLoad 在接口中 I_CmsSitemapLoadHandlerevent - the eventI_CmsSitemapLoadHandler.onLoad(org.opencms.ade.sitemap.client.control.CmsSitemapLoadEvent)public void onModuleLoad()
onModuleLoad 在接口中 com.google.gwt.core.client.EntryPointonModuleLoad 在类中 A_CmsEntryPointEntryPoint.onModuleLoad()public void removeDeleted(CmsClientSitemapEntry entry)
entry - the entry being deletedpublic void setEditorMode(CmsSitemapView.EditorMode editorMode)
editorMode - the editor mode to setpublic void updateDetailPageView(CmsClientSitemapEntry entry)
entry - the entry which was changedpublic void updateEntriesById(java.util.Collection<CmsUUID> ids)
ids - a list of sitemap entry idsprotected CmsSitemapTreeItem getRootItem()