Class CmsResultListItem
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.galleries.client.ui.CmsResultListItem
- 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
Provides the specific list item for the results list.
- Since:
- 8.0.
-
Nested Class Summary
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.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
ConstructorDescriptionCmsResultListItem
(org.opencms.ade.galleries.shared.CmsResultItemBean resultItem, boolean hasPreview, boolean showPath, CmsDNDHandler dndHandler) Creates a new result list item with a main widget. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gwt.event.shared.HandlerRegistration
addDoubleClickHandler
(com.google.gwt.event.dom.client.DoubleClickHandler handler) Adds a double click event handler.void
addPreviewClickHandler
(com.google.gwt.event.dom.client.ClickHandler handler) Adds the preview button click handler.void
addSelectClickHandler
(com.google.gwt.event.dom.client.ClickHandler handler) Adds the select button click handler.static CmsPushButton
Creates the delete button for this item.getName()
Returns the name.Returns the resource type name.org.opencms.ade.galleries.shared.CmsResultItemBean
Gets the search result bean.void
Sets the name.void
setResourceType
(String resourceType) Sets the resource type name.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, onDragCancel, 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
-
Method Details
-
createDeleteButton
Creates the delete button for this item.- Returns:
- the delete button
-
addDoubleClickHandler
public com.google.gwt.event.shared.HandlerRegistration addDoubleClickHandler(com.google.gwt.event.dom.client.DoubleClickHandler handler) Adds a double click event handler.- Parameters:
handler
- the event handler to add- Returns:
- the handler registration for removing the event handler
-
addPreviewClickHandler
Adds the preview button click handler.- Parameters:
handler
- the click handler
-
addSelectClickHandler
Adds the select button click handler.- Parameters:
handler
- the click handler
-
getName
Returns the name.- Returns:
- the name
-
getResourceType
Returns the resource type name.- Returns:
- the resource type name
-
getResult
Gets the search result bean.- Returns:
- the search result bean
-
setName
Sets the name.- Parameters:
name
- the name to set
-
setResourceType
Sets the resource type name.- Parameters:
resourceType
- the resource type name to set
-