Package com.saperion.ngc.resultset
Class ResultListImpl
- java.lang.Object
- 
- org.zkoss.zk.ui.AbstractComponent
- 
- org.zkoss.zk.ui.HtmlBasedComponent
- 
- org.zkoss.zul.impl.XulElement
- 
- org.zkoss.zul.impl.MeshElement
- 
- org.zkoss.zul.Listbox
- 
- com.saperion.ngc.resultset.ResultListImpl
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- ResultList,- java.io.Serializable,- java.lang.Cloneable,- org.zkoss.zk.ui.Component,- org.zkoss.zk.ui.ext.Scope,- org.zkoss.zk.ui.sys.ComponentCtrl,- org.zkoss.zul.ext.Paginated
 
 public class ResultListImpl extends org.zkoss.zul.Listbox implements ResultList Default-implementation ofResultList. This implementation extendsListbox.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ResultListImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetach()java.util.List<ResultListItem>getAllListItems()java.util.List<HeaderInformation>getHeaderInformation()Returns information about the headers representing the columns of this ResultList.intgetListItemCount()intgetSelectedListIndex()DraggableListItemgetSelectedListItem()java.util.List<ResultListItem>getSelectedListItems()voidinit(ResultSetViewImpl parent, ResultSetPresenter presenter)Gets called directly after the new instance was created.voidrenderQueryResult(java.util.List<ResultProperties> resultList)Renders the list of properties that represents the result of the previous query.voidsetContextMenu(org.zkoss.zul.Menupopup popup)Sets aMenupopupto be used as context-menu of this ResultList.voidsetSelectedListIndex(int index)Selects the item with the specified index in the list.voidupdateRow(ResultProperties properties, boolean selected)Updates the row identified by the provided properties.- 
Methods inherited from class org.zkoss.zul.ListboxaddItemToSelection, afterInsert, appendItem, beforeChildAdded, beforeRemove, clearSelection, clone, getChildren, getEmptyMessage, getExtraCtrl, getFrozen, getGroupCount, getGroups, getGroupsModel, getHeads, getIndexOfItem, getInnerWidth, getItemAtIndex, getItemCount, getItemRenderer, getItems, getListfoot, getListhead, getListModel, getMaxlength, getModel, getName, getNonselectableTags, getOddRowSclass, getPaginal, getPagingChild, getPreloadSize, getRows, getSelectedCount, getSelectedIndex, getSelectedItem, getSelectedItems, getSeltype, getVisibleItemCount, getZclass, hasGroup, insertBefore, isAutohidePaging, isCheckmark, isDisabled, isFixedLayout, isMultiple, isSelectOnHighlightDisabled, isVflex, onAfterRender, onInitRender, onPageAttached, onPageDetached, onPagingInitRender, pgi, removeChild, removeItemAt, removeItemFromSelection, renderAll, renderItem, renderItems, renderProperties, scrollToIndex, selectAll, selectItem, service, sessionDidActivate, sessionWillPassivate, setActivePage, setActivePage, setCheckmark, setDisabled, setEmptyMessage, setFixedLayout, setHeight, setInnerWidth, setItemRenderer, setItemRenderer, setMaxlength, setModel, setModel, setMold, setMultiple, setName, setNonselectableTags, setOddRowSclass, setPageSize, setPaginal, setPreloadSize, setRows, setSelectedIndex, setSelectedItem, setSelectedItems, setSeltype, setVflex, setVflex, shallUpdateScrollPos, toggleItemSelection
 - 
Methods inherited from class org.zkoss.zul.impl.MeshElementcheckBeforeSetRows, getActivePage, getPageCount, getPageSize, getPagingPosition, getSpan, isAutopaging, isPagingDisabled, isSizedByContent, isSpan, setAutopaging, setPagingDisabled, setPagingPosition, setSizedByContent, setSpan, setSpan
 - 
Methods inherited from class org.zkoss.zul.impl.XulElementgetContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
 - 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponentaddSclass, focus, getAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
 - 
Methods inherited from class org.zkoss.zk.ui.AbstractComponentaddAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
 - 
Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.zkoss.zk.ui.ComponentaddEventListener, addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, 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
 
- 
 
- 
- 
- 
Method Detail- 
initpublic void init(ResultSetViewImpl parent, ResultSetPresenter presenter) Description copied from interface:ResultListGets called directly after the new instance was created. This method is meant to be used to perform any necessary initialization-tasks.- Specified by:
- initin interface- ResultList
- Parameters:
- parent- the- ResultSetViewImplinstance using this ResultList
- presenter- the- ResultSetPresenterused by the parent
 
 - 
detachpublic void detach() - Specified by:
- detachin interface- org.zkoss.zk.ui.Component
- Overrides:
- detachin class- org.zkoss.zk.ui.AbstractComponent
 
 - 
getListItemCountpublic int getListItemCount() - Specified by:
- getListItemCountin interface- ResultList
- Returns:
- the number of items contained in this ResultList
 
 - 
setSelectedListIndexpublic void setSelectedListIndex(int index) Description copied from interface:ResultListSelects the item with the specified index in the list. All other items will be deselected.- Specified by:
- setSelectedListIndexin interface- ResultList
- Parameters:
- index- index of the item to select
 
 - 
getSelectedListIndexpublic int getSelectedListIndex() - Specified by:
- getSelectedListIndexin interface- ResultList
- Returns:
- the index of the currently selected item in the list or -1 if no item is selected
 
 - 
getAllListItemspublic java.util.List<ResultListItem> getAllListItems() - Specified by:
- getAllListItemsin interface- ResultList
- Returns:
- a list of all items contained in this ResultList. Never null. Modifications on this list will not take effect on the ResultList.
 
 - 
getSelectedListItemspublic java.util.List<ResultListItem> getSelectedListItems() - Specified by:
- getSelectedListItemsin interface- ResultList
- Returns:
- a list of all selected items of this ResultList. Never null. Modifications on this list will not take effect on the ResultList.
 
 - 
getSelectedListItempublic DraggableListItem getSelectedListItem() - Specified by:
- getSelectedListItemin interface- ResultList
- Returns:
- the item currently selected in the list or null if no item is selected
 
 - 
renderQueryResultpublic void renderQueryResult(java.util.List<ResultProperties> resultList) Description copied from interface:ResultListRenders the list of properties that represents the result of the previous query. The list will never be null or empty, because empty results are handled by the parent-view.- Specified by:
- renderQueryResultin interface- ResultList
- Parameters:
- resultList- list of properties to render
 
 - 
updateRowpublic void updateRow(ResultProperties properties, boolean selected) Description copied from interface:ResultListUpdates the row identified by the provided properties. The properties will contain the same original index as the old row that is to be updated. Whether the updated row will be marked as unread or not is up to the implementation. Also, the implementation must decide if a viewer or an embedded index-form will be updated automatically.- Specified by:
- updateRowin interface- ResultList
- Parameters:
- properties- the metadata for the updated row
- selected- if true, the updated row must be set selected
 
 - 
setContextMenupublic void setContextMenu(org.zkoss.zul.Menupopup popup) Description copied from interface:ResultListSets aMenupopupto 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- the parent view is cleared
- the parent view is initialized
- a query result was rendered
 - Specified by:
- setContextMenuin interface- ResultList
- Parameters:
- popup- default context-menu-popup
 
 - 
getHeaderInformationpublic java.util.List<HeaderInformation> getHeaderInformation() Description copied from interface:ResultListReturns information about the headers representing the columns of this ResultList. If no columns are used, this method returns an empty list.- Specified by:
- getHeaderInformationin interface- ResultList
- Returns:
- header-information or an empty list. Never null.
 
 
- 
 
-