public interface ResultList
extends org.zkoss.zk.ui.Component
ResultSetViewImpl
instances.
All implementations of this interface are expected to have a constructor with no arguments.
Instances of this interface exist as long as one page of a query-result is displayed. When a new
query is performed or when the user scrolls to another page, a new instance will be created.Modifier and Type | Method and Description |
---|---|
List<ResultListItem> |
getAllListItems() |
List<HeaderInformation> |
getHeaderInformation()
Returns information about the headers representing the columns of this ResultList.
|
int |
getListItemCount() |
int |
getSelectedListIndex() |
ResultListItem |
getSelectedListItem() |
List<ResultListItem> |
getSelectedListItems() |
void |
init(ResultSetViewImpl parent,
ResultSetPresenter presenter)
Gets called directly after the new instance was created.
|
void |
renderQueryResult(List<ResultProperties> resultList)
Renders the list of properties that represents the result of the previous query.
|
void |
setContextMenu(org.zkoss.zul.Menupopup popup)
Sets a
Menupopup to be used as context-menu of this ResultList. |
void |
setSelectedListIndex(int index)
Selects the item with the specified index in the list.
|
void |
updateRow(ResultProperties properties,
boolean selected)
Updates the row identified by the provided properties.
|
addEventListener, addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getDefinition, getDesktop, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getShadowVariable, getShadowVariable, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, query, queryAll, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride
void init(ResultSetViewImpl parent, ResultSetPresenter presenter)
parent
- the ResultSetViewImpl
instance using this ResultListpresenter
- the ResultSetPresenter
used by the parentint getListItemCount()
void setSelectedListIndex(int index)
index
- index of the item to selectint getSelectedListIndex()
List<ResultListItem> getAllListItems()
List<ResultListItem> getSelectedListItems()
ResultListItem getSelectedListItem()
void renderQueryResult(List<ResultProperties> resultList)
resultList
- list of properties to rendervoid updateRow(ResultProperties properties, boolean selected)
properties
- the metadata for the updated rowselected
- if true, the updated row must be set selectedvoid setContextMenu(org.zkoss.zul.Menupopup popup)
Menupopup
to be used as context-menu of this ResultList.
Implementations can either use the given context-menu or use this method as a notification
to create or update their own context menu. This method gets called when
popup
- default context-menu-popupList<HeaderInformation> getHeaderInformation()
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.