public abstract class A_CmsListTab extends A_CmsTab implements com.google.gwt.event.logical.shared.ValueChangeHandler<java.lang.String>
限定符和类型 | 类和说明 |
---|---|
protected class |
A_CmsListTab.A_SelectionHandler
Selection handler to handle check box click events and double clicks on the list items.
|
protected class |
A_CmsListTab.SelectHandler
Special click handler to use with select button.
|
限定符和类型 | 字段和说明 |
---|---|
protected static I_CmsLayoutBundle.I_CmsGalleryDialogCss |
DIALOG_CSS
The css bundle used for this widget.
|
protected com.google.gwt.user.client.ui.HasText |
m_infoLabel
A label for displaying additional information about the tab.
|
protected CmsScrollPanel |
m_list
The borded panel to hold the scrollable list.
|
protected com.google.gwt.user.client.ui.FlowPanel |
m_options
The option panel.
|
protected CmsTextBox |
m_quickSearch
The quick search box.
|
protected CmsList<? extends I_CmsListItem> |
m_scrollList
The scrollable list panel.
|
protected CmsPushButton |
m_searchButton
The quick search button.
|
protected CmsSelectBox |
m_sortSelectBox
The select box to change the sort order.
|
protected com.google.gwt.user.client.ui.FlowPanel |
m_tab
The option panel.
|
m_tabTextAccessor
构造器和说明 |
---|
A_CmsListTab(I_CmsGalleryProviderConstants.GalleryTabId tabId)
The default constructor with drag handler.
|
A_CmsListTab(java.lang.String tabId)
Sets up a list tab with a given tab id.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
addWidgetToFrontOfList(com.google.gwt.user.client.ui.Widget listItem)
Adds a widget to the front of the list.
|
protected void |
addWidgetToList(com.google.gwt.user.client.ui.Widget listItem)
Add a list item widget to the list panel.
|
protected void |
addWidgetToOptions(com.google.gwt.user.client.ui.Widget widget)
Add a widget to the option panel.
|
protected void |
cancelQuickFilterTimer()
Cancels the quick filter timer.
|
protected void |
checkQuickSearchStatus()
Checks the quick search input and enables/disables the search button accordingly.
|
protected void |
clearList()
Clears the list panel.
|
protected CmsList<? extends I_CmsListItem> |
createScrollList()
Creates the list which should contain the list items of the tab.
|
protected CmsPushButton |
createSelectButton(A_CmsListTab.A_SelectionHandler selectionHandler)
Creates a select button.
|
protected CmsPushButton |
createSelectResourceButton(java.lang.String resourcePath,
CmsUUID structureId,
java.lang.String title,
java.lang.String resourceType)
Creates a button widget to select the specified resource.
|
protected CmsUploadButton |
createUploadButtonForTarget(java.lang.String target,
boolean isRootPath)
Creates an upload button for the given target.
|
CmsScrollPanel |
getList()
Returns the list.
|
protected abstract java.util.LinkedHashMap<java.lang.String,java.lang.String> |
getSortList()
Returns a list with sort values for this tab.
|
protected boolean |
hasQuickFilter()
Returns if this tab has quick filter enabled.
|
protected boolean |
hasQuickSearch()
Returns if the tab has the quick search box.
|
protected void |
init()
Call after all handlers have been set.
|
void |
onContentChange()
Call on content change to update the layout.
|
void |
onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.String> event)
Will be triggered if the value in the select box changes.
|
protected void |
quickSearch()
Sets the search query an selects the result tab.
|
protected void |
scheduleQuickFilterTimer()
Schedules the quick filter action.
|
protected CmsTreeItem |
searchTreeItem(CmsList<? extends I_CmsListItem> list,
java.lang.String categoryPath)
Searches in the categories tree or list the item and returns it.
|
void |
setSortSelectBoxValue(java.lang.String value,
boolean fireEvents)
Sets the value selected in the sort select box, if possible.
|
clearParams, getParamPanels, getTabHandler, getTabId, isSelected, onDeselection, onSelection, removeParam, setTabTextAccessor
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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, unsinkEvents
protected static final I_CmsLayoutBundle.I_CmsGalleryDialogCss DIALOG_CSS
protected com.google.gwt.user.client.ui.HasText m_infoLabel
@UiField protected CmsScrollPanel m_list
@UiField protected com.google.gwt.user.client.ui.FlowPanel m_options
protected CmsTextBox m_quickSearch
protected CmsList<? extends I_CmsListItem> m_scrollList
protected CmsPushButton m_searchButton
protected CmsSelectBox m_sortSelectBox
@UiField protected com.google.gwt.user.client.ui.FlowPanel m_tab
public A_CmsListTab(I_CmsGalleryProviderConstants.GalleryTabId tabId)
tabId
- the tab idpublic A_CmsListTab(java.lang.String tabId)
tabId
- the tab idpublic CmsScrollPanel getList()
public void onContentChange()
public void onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.String> event)
onValueChange
在接口中 com.google.gwt.event.logical.shared.ValueChangeHandler<java.lang.String>
ValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)
public void setSortSelectBoxValue(java.lang.String value, boolean fireEvents)
value
- the new value for the sort select boxfireEvents
- if true, the change event of the select box is firedprotected void addWidgetToFrontOfList(com.google.gwt.user.client.ui.Widget listItem)
listItem
- the list item to addprotected void addWidgetToList(com.google.gwt.user.client.ui.Widget listItem)
listItem
- the list item to addprotected void addWidgetToOptions(com.google.gwt.user.client.ui.Widget widget)
The option panel should contain drop down boxes or other list options.
widget
- the widget to addprotected void cancelQuickFilterTimer()
protected void checkQuickSearchStatus()
protected void clearList()
protected CmsList<? extends I_CmsListItem> createScrollList()
protected CmsPushButton createSelectButton(A_CmsListTab.A_SelectionHandler selectionHandler)
selectionHandler
- the selction handlerprotected CmsPushButton createSelectResourceButton(java.lang.String resourcePath, CmsUUID structureId, java.lang.String title, java.lang.String resourceType)
resourcePath
- the item resource pathstructureId
- the structure idtitle
- the resource titleresourceType
- the item resource typeprotected CmsUploadButton createUploadButtonForTarget(java.lang.String target, boolean isRootPath)
target
- the upload target folderisRootPath
- true if target is a root pathprotected abstract java.util.LinkedHashMap<java.lang.String,java.lang.String> getSortList()
protected boolean hasQuickFilter()
true
if this tab has quick filter enabledprotected boolean hasQuickSearch()
true
if the tab has the quick search boxprotected void init()
protected void quickSearch()
protected void scheduleQuickFilterTimer()
protected CmsTreeItem searchTreeItem(CmsList<? extends I_CmsListItem> list, java.lang.String categoryPath)
list
- the list of items to start fromcategoryPath
- the category id to search