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
public class CmsResultListItem extends CmsListItem
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
-
-
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
-
-
Constructor Summary
Constructors Constructor Description CmsResultListItem(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.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
createDeleteButton()
Creates the delete button for this item.java.lang.String
getName()
Returns the name.java.lang.String
getResourceType()
Returns the resource type name.org.opencms.ade.galleries.shared.CmsResultItemBean
getResult()
Gets the search result bean.void
setName(java.lang.String name)
Sets the name.void
setResourceType(java.lang.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 Detail
-
CmsResultListItem
public CmsResultListItem(org.opencms.ade.galleries.shared.CmsResultItemBean resultItem, boolean hasPreview, boolean showPath, CmsDNDHandler dndHandler)
Creates a new result list item with a main widget.- Parameters:
resultItem
- the result itemhasPreview
- if the item has a preview optionshowPath
-true
to show the resource path in sub titledndHandler
- the drag and drop handler
-
-
Method Detail
-
createDeleteButton
public static CmsPushButton 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
public void addPreviewClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
Adds the preview button click handler.- Parameters:
handler
- the click handler
-
addSelectClickHandler
public void addSelectClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
Adds the select button click handler.- Parameters:
handler
- the click handler
-
getName
public java.lang.String getName()
Returns the name.- Returns:
- the name
-
getResourceType
public java.lang.String getResourceType()
Returns the resource type name.- Returns:
- the resource type name
-
getResult
public org.opencms.ade.galleries.shared.CmsResultItemBean getResult()
Gets the search result bean.- Returns:
- the search result bean
-
setName
public void setName(java.lang.String name)
Sets the name.- Parameters:
name
- the name to set
-
setResourceType
public void setResourceType(java.lang.String resourceType)
Sets the resource type name.- Parameters:
resourceType
- the resource type name to set
-
-