Class CmsToolbarClipboardView
- java.lang.Object
-
- org.opencms.ade.sitemap.client.toolbar.CmsToolbarClipboardView
-
public class CmsToolbarClipboardView extends java.lang.Object
Sitemap toolbar clipboard view.- Since:
- 8.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CmsToolbarClipboardView.CmsClipboardDeletedItem
The deleted item widget.
-
Field Summary
Fields Modifier and Type Field Description protected CmsToolbarClipboardButton
m_clipboardButton
The clipboard toolbar button.
-
Constructor Summary
Constructors Constructor Description CmsToolbarClipboardView(CmsToolbarClipboardButton clipboardButton, CmsSitemapController controller)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDeleted(org.opencms.ade.sitemap.shared.CmsClientSitemapEntry entry)
Adds an deleted entry.void
addModified(org.opencms.ade.sitemap.shared.CmsClientSitemapEntry entry, java.lang.String previousPath)
Adds a modified entry.void
clearDeleted()
Clears the deleted list.void
clearModified()
Clears the modified list.CmsListItem
createDeletedItem(org.opencms.ade.sitemap.shared.CmsClientSitemapEntry entry)
Creates a new deleted list item.CmsListItem
createModifiedItem(org.opencms.ade.sitemap.shared.CmsClientSitemapEntry entry)
Creates a new modified list item.CmsList<CmsListItem>
getDeleted()
Returns the deleted list.CmsList<CmsListItem>
getModified()
Returns the modified list.void
removeDeleted(java.lang.String entryId)
Removes an entry from the deleted list.void
removeModified(java.lang.String entryId)
Removes an entry from the modified list.protected void
updateContent(org.opencms.ade.sitemap.shared.CmsSitemapClipboardData data)
Updates the clip board content.
-
-
-
Field Detail
-
m_clipboardButton
protected CmsToolbarClipboardButton m_clipboardButton
The clipboard toolbar button.
-
-
Constructor Detail
-
CmsToolbarClipboardView
public CmsToolbarClipboardView(CmsToolbarClipboardButton clipboardButton, CmsSitemapController controller)
Constructor.- Parameters:
clipboardButton
- the clipboard buttoncontroller
- the sitemap controller
-
-
Method Detail
-
addDeleted
public void addDeleted(org.opencms.ade.sitemap.shared.CmsClientSitemapEntry entry)
Adds an deleted entry.- Parameters:
entry
- the deleted entry
-
addModified
public void addModified(org.opencms.ade.sitemap.shared.CmsClientSitemapEntry entry, java.lang.String previousPath)
Adds a modified entry.- Parameters:
entry
- the entrypreviousPath
- the previous path
-
clearDeleted
public void clearDeleted()
Clears the deleted list.
-
clearModified
public void clearModified()
Clears the modified list.
-
createDeletedItem
public CmsListItem createDeletedItem(org.opencms.ade.sitemap.shared.CmsClientSitemapEntry entry)
Creates a new deleted list item.- Parameters:
entry
- the sitemap entry- Returns:
- the new created (still orphan) list item
-
createModifiedItem
public CmsListItem createModifiedItem(org.opencms.ade.sitemap.shared.CmsClientSitemapEntry entry)
Creates a new modified list item.- Parameters:
entry
- the sitemap entry- Returns:
- the new created (still orphan) list item
-
getDeleted
public CmsList<CmsListItem> getDeleted()
Returns the deleted list.- Returns:
- the deleted list
-
getModified
public CmsList<CmsListItem> getModified()
Returns the modified list.- Returns:
- the modified list
-
removeDeleted
public void removeDeleted(java.lang.String entryId)
Removes an entry from the deleted list.- Parameters:
entryId
- the entry id
-
removeModified
public void removeModified(java.lang.String entryId)
Removes an entry from the modified list.- Parameters:
entryId
- the entry id
-
updateContent
protected void updateContent(org.opencms.ade.sitemap.shared.CmsSitemapClipboardData data)
Updates the clip board content.- Parameters:
data
- the clip board data
-
-