public class CmsResultsTab extends A_CmsListTab
It displays the selected search parameter, the sort order and the search results for the current search.
| 限定符和类型 | 类和说明 |
|---|---|
protected class |
CmsResultsTab.CmsAsynchronousScrollToBottomHandler
Scroll handler which executes an action when the user has scrolled to the bottom.
|
class |
CmsResultsTab.DeleteHandler
Click-handler for the delete button.
|
protected class |
CmsResultsTab.PreviewHandler
Special click handler to use with preview button.
|
protected class |
CmsResultsTab.SelectHandler
Special click handler to use with select button.
|
A_CmsListTab.A_SelectionHandler| 限定符和类型 | 字段和说明 |
|---|---|
protected CmsResultsBackwardsScrollHandler |
m_backwardScrollHandler
The handler for scrolling to the top of the scroll panel.
|
protected boolean |
m_hasMoreResults
Stores the information if more results in the search object are available.
|
protected CmsResultListItem |
m_preset
The result list item which corresponds to a preset value in the editor.
|
DIALOG_CSS, m_infoLabel, m_list, m_options, m_quickSearch, m_scrollList, m_searchButton, m_sortSelectBox, m_tabm_tabTextAccessor| 构造器和说明 |
|---|
CmsResultsTab(CmsResultsTabHandler tabHandler,
CmsDNDHandler dndHandler,
I_CmsGalleryHandler galleryHandler)
The constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addContent(CmsGallerySearchBean searchBean)
Appends the list items for the search results from a search bean.
|
protected void |
addContentItems(java.util.List<CmsResultItemBean> list,
boolean front)
Adds list items for a list of search results.
|
protected void |
addSingleResult(CmsResultItemBean resultItem,
boolean front)
Adds a list item for a single search result.
|
protected void |
clearList()
Clears the list panel.
|
void |
clearParams()
Clears all search parameters.
|
void |
fillContent(CmsGallerySearchBean searchObj,
java.util.List<CmsSearchParamPanel> paramPanels)
Fill the content of the results tab.
|
CmsDNDHandler |
getDNDHandler()
Returns the drag and drop handler.
|
java.util.List<CmsSearchParamPanel> |
getParamPanels(CmsGallerySearchBean searchObj)
Returns the search parameters to display within the result tab.
|
protected java.util.LinkedHashMap<java.lang.String,java.lang.String> |
getSortList()
Returns a list with sort values for this tab.
|
protected CmsResultsTabHandler |
getTabHandler()
Returns the tab handler.
|
protected boolean |
hasQuickFilter()
Returns if this tab has quick filter enabled.
|
CmsResultsTab.DeleteHandler |
makeDeleteHandler(java.lang.String resourcePath)
Returns the delete handler.
|
void |
removeNoParamMessage()
Removes the no params message.
|
protected void |
scrollToPreset()
Scrolls to the result which corresponds to a preset value in the editor.
|
protected void |
setScrollPosition(int pos)
Helper for setting the scroll position of the scroll panel.
|
void |
showNoParamsMessage()
Shows the message if no search params were selected.
|
void |
updateListSize()
Updates the height (with border) of the result list panel according to the search parameter panels shown.
|
addWidgetToFrontOfList, addWidgetToList, addWidgetToOptions, cancelQuickFilterTimer, checkQuickSearchStatus, createScrollList, createSelectButton, createSelectResourceButton, createUploadButtonForTarget, getList, hasQuickSearch, init, onContentChange, onValueChange, quickSearch, scheduleQuickFilterTimer, searchTreeItem, setSortSelectBoxValuegetTabId, isSelected, onDeselection, onSelection, removeParam, setTabTextAccessorclaimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventsprotected CmsResultsBackwardsScrollHandler m_backwardScrollHandler
protected boolean m_hasMoreResults
protected CmsResultListItem m_preset
public CmsResultsTab(CmsResultsTabHandler tabHandler, CmsDNDHandler dndHandler, I_CmsGalleryHandler galleryHandler)
tabHandler - the tab handlerdndHandler - the dnd managergalleryHandler - the gallery handlerpublic void clearParams()
clearParams 在类中 A_CmsTabpublic void fillContent(CmsGallerySearchBean searchObj, java.util.List<CmsSearchParamPanel> paramPanels)
searchObj - the current search object containing search resultsparamPanels - list of search parameter panels to showpublic CmsDNDHandler getDNDHandler()
public java.util.List<CmsSearchParamPanel> getParamPanels(CmsGallerySearchBean searchObj)
A_CmsTabgetParamPanels 在类中 A_CmsTabsearchObj - the current search objectA_CmsTab.getParamPanels(org.opencms.ade.galleries.shared.CmsGallerySearchBean)public CmsResultsTab.DeleteHandler makeDeleteHandler(java.lang.String resourcePath)
resourcePath - the resource path of the resourcepublic void removeNoParamMessage()
public void showNoParamsMessage()
public void updateListSize()
protected void addContent(CmsGallerySearchBean searchBean)
searchBean - a search bean containing resultsprotected void addContentItems(java.util.List<CmsResultItemBean> list, boolean front)
list - the list of search resultsfront - if true, list items will be added to the front of the list, else at the backprotected void addSingleResult(CmsResultItemBean resultItem, boolean front)
resultItem - the search resultfront - if true, adds the list item to the front of the list, else at the backprotected void clearList()
A_CmsListTabclearList 在类中 A_CmsListTabA_CmsListTab.clearList()protected java.util.LinkedHashMap<java.lang.String,java.lang.String> getSortList()
A_CmsListTabgetSortList 在类中 A_CmsListTabA_CmsListTab.getSortList()protected CmsResultsTabHandler getTabHandler()
A_CmsTabgetTabHandler 在类中 A_CmsTabA_CmsTab.getTabHandler()protected boolean hasQuickFilter()
A_CmsListTabhasQuickFilter 在类中 A_CmsListTabtrue if this tab has quick filter enabledA_CmsListTab.hasQuickFilter()protected void scrollToPreset()
protected void setScrollPosition(int pos)
pos - the scroll position