Package org.opencms.ade.sitemap.client
Class CmsModelPageTreeItem
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.gwt.client.ui.CmsListItem
org.opencms.gwt.client.ui.tree.CmsTreeItem
org.opencms.ade.sitemap.client.CmsModelPageTreeItem
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.IsRenderable
,com.google.gwt.user.client.ui.IsWidget
,I_CmsDraggable
,I_CmsListItem
,I_CmsTruncable
Tree item for the model page editor mode.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
List item widget that displays additional infos dynamically.Nested classes/interfaces inherited from class org.opencms.gwt.client.ui.CmsListItem
CmsListItem.MoveHandle
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
-
Field Summary
Fields inherited from class org.opencms.gwt.client.ui.tree.CmsTreeItem
ANIMATION_DURATION, m_children, m_opener
Fields inherited from class org.opencms.gwt.client.ui.CmsListItem
m_checkbox, m_decoratedPanel, m_decorationWidgets, m_decorationWidth, m_id, m_listItemWidget, m_mainWidget, m_panel, m_placeholder, m_provisionalParent, MOVE_HANDLE_MARKER_CLASS
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
ConstructorDescriptionCmsModelPageTreeItem
(boolean isModelGroup, String title, String subTitle) Creates the fake model page tree item used as a root for the tree view.CmsModelPageTreeItem
(org.opencms.ade.sitemap.shared.CmsModelPageEntry modelpage, boolean isModelGroup, boolean isParentModel) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic CmsModelPageTreeItem
createRootItem
(boolean isModelGroup, String title, String subTitle) Creates the fake model page tree item used as a root for the tree view.org.opencms.util.CmsUUID
Returns the folder entry id.Returns the site path.boolean
Returns if the model page entry is disabled.boolean
Returns whether the entry represents a model group page.boolean
Returns if this model page entry is inherited from the parent configuration.void
setDisabled
(boolean disabled) Sets the model page entry disabled.void
updateSitePath
(String sitePath) Updates the site path info.Methods inherited from class org.opencms.gwt.client.ui.tree.CmsTreeItem
add, addChild, adopt, clear, clearChildren, closeAllEmptyChildren, createOpener, executeOpen, fireClose, fireOpen, getChild, getChild, getChildCount, getChildren, getDragHelper, getItemPosition, getLastOpenedItem, getParentItem, getParentTarget, getPath, getPathLevel, getTree, hideOpeners, insertChild, insertPlaceholderAsLastChild, isDropEnabled, isOpen, onChangeChildren, onDragCancel, removeChild, removeChild, removeChild, removeOpener, repositionPlaceholder, setDropEnabled, setLeafStyle, setOpen, setOpen, setParentItem, setTree, showOpeners, visit
Methods inherited from class org.opencms.gwt.client.ui.CmsListItem
addCheckBox, addDecoration, addDecorationWidget, addMainWidget, cloneForPlaceholder, getCheckBox, getCursorOffsetDelta, getData, getDecorationWidgets, getDndHelperClass, getDndParentClass, getId, getListItemWidget, getMainWidget, getMoveHandle, getParentList, getPlaceholder, initContent, initContent, initContent, initMoveHandle, initMoveHandle, moveHandleLeft, onDrop, onStartDrag, removeDecorationWidget, setData, setDndHelperClass, setDndParentClass, setId, setSmallView, truncate
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opencms.gwt.client.dnd.I_CmsDraggable
getElement
-
Constructor Details
-
CmsModelPageTreeItem
Creates the fake model page tree item used as a root for the tree view.- Parameters:
isModelGroup
- in case of a model group pagetitle
- the titlesubTitle
- the sub title
-
-
Method Details
-
createRootItem
public static CmsModelPageTreeItem createRootItem(boolean isModelGroup, String title, String subTitle) Creates the fake model page tree item used as a root for the tree view.- Parameters:
isModelGroup
- in case of a model group pagetitle
- the titlesubTitle
- the sub title- Returns:
- the root tree item
-
getEntryId
Returns the folder entry id.- Returns:
- the folder entry id
-
getSitePath
Returns the site path.- Returns:
- the site path
-
isDisabled
Returns if the model page entry is disabled.- Returns:
true
if the model page entry is disabled
-
isModelGroup
Returns whether the entry represents a model group page.- Returns:
true
if the entry represents a model group page
-
isParentModel
Returns if this model page entry is inherited from the parent configuration.- Returns:
true
if this model page entry is inherited from the parent configuration
-
setDisabled
Sets the model page entry disabled.- Parameters:
disabled
-true
to disable
-
updateSitePath
Updates the site path info.- Parameters:
sitePath
- the new site path
-