public class CmsSitemapTreeItem extends CmsLazyTreeItem
CmsLazyTreeItem
,
CmsClientSitemapEntry
限定符和类型 | 类和说明 |
---|---|
protected class |
CmsSitemapTreeItem.DetailPageLabelTitleGenerator
Label generator for the detail page info label.
|
CmsLazyTreeItem.LoadingItem, CmsLazyTreeItem.LoadState
CmsListItem.MoveHandle
限定符和类型 | 字段和说明 |
---|---|
protected CmsUUID |
m_entryId
The current sitemap entry id.
|
ANIMATION_DURATION, m_children, m_opener
m_checkbox, m_decoratedPanel, m_decorationWidgets, m_decorationWidth, m_id, m_listItemWidget, m_mainWidget, m_panel, m_placeholder, m_provisionalParent
构造器和说明 |
---|
CmsSitemapTreeItem(CmsClientSitemapEntry entry)
Default constructor.
|
限定符和类型 | 方法和说明 |
---|---|
protected static void |
addInfo(java.util.List<CmsAdditionalInfoBean> infos,
java.lang.String label,
java.lang.String value)
Helper method to add an additional info bean to a list.
|
protected com.google.gwt.user.client.ui.Widget |
addMarker(java.lang.String text)
Helper method for adding the marker widget.
|
java.lang.String |
getDisplayedUrl(java.lang.String sitePath)
Given the path of a sitemap entry, this method returns the URL which should be displayed to the user.
|
com.google.gwt.dom.client.Element |
getDragHelper(I_CmsDropTarget target)
Creates the drag helper element and attaches it into the DOM.
|
CmsUUID |
getEntryId()
Returns the entry id.
|
static CmsSitemapTreeItem |
getItemById(CmsUUID id)
Looks up a sitemap tree item by entry id.
|
I_CmsDragHandle |
getMoveHandle()
Returns the move handle.
|
protected java.lang.String |
getName(java.lang.String sitePath)
Return the name of this item, which can differ from the entry name for root nodes.
|
java.lang.String |
getPath()
Returns the path of IDs for the this item.
|
CmsClientSitemapEntry |
getSitemapEntry()
Returns the sitemap entry.
|
java.lang.String |
getSitePath()
Returns the site path.
|
void |
highlight(boolean highlightOn)
Turns the highlighting for this item on or off.
|
void |
highlightTemporarily(int duration,
CmsListItemWidget.Background background)
Temporarily highlights an item.
|
boolean |
isDropEnabled()
Checks if dropping is enabled.
|
protected void |
onChangeChildren()
Helper method which is called when the list of children changes.
|
void |
onDragCancel()
Executed on drag cancel.
|
void |
onDrop(I_CmsDropTarget target)
Executed on drop.
|
void |
onStartDrag(I_CmsDropTarget target)
Executed on drag start.
|
protected void |
removeInvalidChildren()
Helper method to remove invalid children that don't have a corresponding CmsSitemapClientEntry.
|
void |
resetEntry()
Resets entry appearance.
|
void |
setBackgroundColor(CmsListItemWidget.Background background)
Sets the background color of the list item widget.
|
void |
setStateIcon(CmsListInfoBean.StateIcon icon)
Sets the icon.
|
java.lang.String |
toString() |
void |
updateDetailPageStatus()
Updates the detail page description.
|
void |
updateEditorMode()
Updates the sitemap editor mode.
|
void |
updateEntry(CmsClientSitemapEntry entry)
Refreshes the displayed data from the given sitemap entry.
|
void |
updateInNavigation(CmsClientSitemapEntry entry)
Updates the in navigation properties of the displayed entry.
|
void |
updateSitePath()
Updates the site path using the current site entry's data.
|
void |
updateSitePath(java.lang.String sitePath)
Updates the recursively the site path.
|
getLoadingImage, getLoadState, isLoaded, onFinishLoading, onStartLoading
add, addChild, adopt, clear, clearChildren, closeAllEmptyChildren, createOpener, executeOpen, fireClose, fireOpen, getChild, getChild, getChildCount, getChildren, getItemPosition, getLastOpenedItem, getMinusImage, getParentItem, getParentTarget, getPathLevel, getPlusImage, getTree, hideOpeners, insertChild, insertPlaceholderAsLastChild, isOpen, removeChild, removeChild, removeChild, removeOpener, repositionPlaceholder, setDropEnabled, setLeafStyle, setOpen, setOpen, setParentItem, setTree, showOpeners
addCheckBox, addDecoration, addDecorationWidget, addMainWidget, cloneForPlaceholder, getCheckBox, getData, getDecorationWidgets, getId, getListItemWidget, getMainWidget, getParentList, getPlaceholder, initContent, initContent, initContent, initMoveHandle, initMoveHandle, removeDecorationWidget, setData, setId, setSmallView, truncate
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getElement
protected CmsUUID m_entryId
public CmsSitemapTreeItem(CmsClientSitemapEntry entry)
entry
- the sitemap entrypublic static CmsSitemapTreeItem getItemById(CmsUUID id)
id
- the sitemap entry idprotected static void addInfo(java.util.List<CmsAdditionalInfoBean> infos, java.lang.String label, java.lang.String value)
infos
- the list of additional info beanslabel
- the label for the new beanvalue
- the value for the new beanpublic java.lang.String getDisplayedUrl(java.lang.String sitePath)
sitePath
- the site path of a sitemap entrypublic com.google.gwt.dom.client.Element getDragHelper(I_CmsDropTarget target)
I_CmsDraggable
getDragHelper
在接口中 I_CmsDraggable
getDragHelper
在类中 CmsTreeItem
target
- the drop targetI_CmsDraggable.getDragHelper(I_CmsDropTarget)
public CmsUUID getEntryId()
public I_CmsDragHandle getMoveHandle()
CmsListItem
getMoveHandle
在类中 CmsListItem
CmsListItem.getMoveHandle()
public java.lang.String getPath()
CmsTreeItem
getPath
在类中 CmsTreeItem
CmsTreeItem.getPath()
public CmsClientSitemapEntry getSitemapEntry()
public java.lang.String getSitePath()
public void highlight(boolean highlightOn)
highlightOn
- if true, the highlighting is turned on, else offpublic void highlightTemporarily(int duration, CmsListItemWidget.Background background)
duration
- the duration for whichbackground
- the background to color to set when finishedpublic boolean isDropEnabled()
CmsTreeItem
isDropEnabled
在类中 CmsTreeItem
true
if dropping is enabledCmsTreeItem.isDropEnabled()
public void onDragCancel()
I_CmsDraggable
onDragCancel
在接口中 I_CmsDraggable
onDragCancel
在类中 CmsTreeItem
I_CmsDraggable.onDragCancel()
public void onDrop(I_CmsDropTarget target)
I_CmsDraggable
onDrop
在接口中 I_CmsDraggable
onDrop
在类中 CmsListItem
target
- the drop targetI_CmsDraggable.onDrop(org.opencms.gwt.client.dnd.I_CmsDropTarget)
public void onStartDrag(I_CmsDropTarget target)
I_CmsDraggable
onStartDrag
在接口中 I_CmsDraggable
onStartDrag
在类中 CmsListItem
target
- the current drop targetCmsListItem.onStartDrag(org.opencms.gwt.client.dnd.I_CmsDropTarget)
public void resetEntry()
public void setBackgroundColor(CmsListItemWidget.Background background)
If the background is null
, the widget will be shown with its default style.
background
- the background color to setpublic void setStateIcon(CmsListInfoBean.StateIcon icon)
icon
- the icon to setpublic java.lang.String toString()
toString
在类中 com.google.gwt.user.client.ui.UIObject
UIObject.toString()
public void updateDetailPageStatus()
public void updateEditorMode()
public void updateEntry(CmsClientSitemapEntry entry)
entry
- the sitemap entry to updatepublic void updateInNavigation(CmsClientSitemapEntry entry)
entry
- the sitemap entrypublic void updateSitePath()
public void updateSitePath(java.lang.String sitePath)
sitePath
- the new site path to setprotected com.google.gwt.user.client.ui.Widget addMarker(java.lang.String text)
text
- the text for the marker widgetprotected java.lang.String getName(java.lang.String sitePath)
sitePath
- the sitemap entry's site pathprotected void onChangeChildren()
CmsTreeItem
protected void removeInvalidChildren()