Class CmsMenuListItem
- 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.ade.containerpage.client.ui.CmsMenuListItem
-
- 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
public class CmsMenuListItem extends CmsListItem
Draggable menu element. Needed for favorite list.- Since:
- 8.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opencms.gwt.client.ui.CmsListItem
CmsListItem.MoveHandle
-
-
Field Summary
Fields Modifier and Type Field Description protected CmsPushButton
m_editButton
The element edit button.-
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
-
-
Constructor Summary
Constructors Constructor Description CmsMenuListItem(org.opencms.ade.containerpage.shared.CmsContainerElementData element)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteElement()
Removes the element from it's parent widget.void
disableEdit(java.lang.String reason, boolean locked)
Disables the edit button with the given reason.void
enableEdit(com.google.gwt.event.dom.client.ClickHandler editClickHandler)
Enables the edit button with the given click handler.void
hideEditButton()
Hides the edit button.void
hideRemoveButton()
Hides the element delete button.void
onDragCancel()
Executed on drag cancel.void
onDrop(I_CmsDropTarget target)
Executed on drop.void
onStartDrag(I_CmsDropTarget target)
Executed on drag start.void
showEditButton()
Shows the element edit button.void
showRemoveButton()
Shows the element delete button.-
Methods inherited from class org.opencms.gwt.client.ui.CmsListItem
add, addCheckBox, addDecoration, addDecorationWidget, addMainWidget, cloneForPlaceholder, getCheckBox, getCursorOffsetDelta, getData, getDecorationWidgets, getDndHelperClass, getDndParentClass, getDragHelper, getId, getListItemWidget, getMainWidget, getMoveHandle, getParentList, getParentTarget, getPlaceholder, initContent, initContent, initContent, initMoveHandle, initMoveHandle, moveHandleLeft, 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
-
-
-
-
Field Detail
-
m_editButton
protected CmsPushButton m_editButton
The element edit button.
-
-
Constructor Detail
-
CmsMenuListItem
public CmsMenuListItem(org.opencms.ade.containerpage.shared.CmsContainerElementData element)
Constructor.- Parameters:
element
- the element data
-
-
Method Detail
-
deleteElement
public void deleteElement()
Removes the element from it's parent widget.
-
disableEdit
public void disableEdit(java.lang.String reason, boolean locked)
Disables the edit button with the given reason.- Parameters:
reason
- the disable reasonlocked
-true
if the resource is locked
-
enableEdit
public void enableEdit(com.google.gwt.event.dom.client.ClickHandler editClickHandler)
Enables the edit button with the given click handler.- Parameters:
editClickHandler
- the edit click handler
-
hideEditButton
public void hideEditButton()
Hides the edit button.
-
hideRemoveButton
public void hideRemoveButton()
Hides the element delete button.
-
onDragCancel
public void onDragCancel()
Description copied from interface:I_CmsDraggable
Executed on drag cancel.- Specified by:
onDragCancel
in interfaceI_CmsDraggable
- Overrides:
onDragCancel
in classCmsListItem
- See Also:
I_CmsDraggable.onDragCancel()
-
onDrop
public void onDrop(I_CmsDropTarget target)
Description copied from interface:I_CmsDraggable
Executed on drop.- Specified by:
onDrop
in interfaceI_CmsDraggable
- Overrides:
onDrop
in classCmsListItem
- Parameters:
target
- the drop target- See Also:
I_CmsDraggable.onDrop(org.opencms.gwt.client.dnd.I_CmsDropTarget)
-
onStartDrag
public void onStartDrag(I_CmsDropTarget target)
Description copied from interface:I_CmsDraggable
Executed on drag start.- Specified by:
onStartDrag
in interfaceI_CmsDraggable
- Overrides:
onStartDrag
in classCmsListItem
- Parameters:
target
- the current drop target- See Also:
I_CmsDraggable.onStartDrag(org.opencms.gwt.client.dnd.I_CmsDropTarget)
-
showEditButton
public void showEditButton()
Shows the element edit button.
-
showRemoveButton
public void showRemoveButton()
Shows the element delete button.
-
-