Package com.saperion.ngc.resultset
Class DraggableListItem
java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Listitem
com.saperion.ngc.resultset.DraggableListItem
- All Implemented Interfaces:
- ResultListItem,- TypedListitem,- Serializable,- Cloneable,- org.zkoss.zk.ui.Component,- org.zkoss.zk.ui.ext.Scope,- org.zkoss.zk.ui.sys.ComponentCtrl
public class DraggableListItem
extends org.zkoss.zul.Listitem
implements TypedListitem, ResultListItem
Extended Listitem that supports dragging and holds additional information.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.zkoss.zul.Listitemorg.zkoss.zul.Listitem.ExtraCtrlNested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponentorg.zkoss.zk.ui.AbstractComponent.ChildrenNested classes/interfaces inherited from interface com.saperion.ngc.resultset.TypedListitemTypedListitem.ListitemType
- 
Field SummaryFields inherited from class org.zkoss.zk.ui.HtmlBasedComponent_zclassFields inherited from interface org.zkoss.zk.ui.ComponentAPPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPEFields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrlAFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
- 
Constructor SummaryConstructorsConstructorDescriptionDraggableListItem(ResultProperties properties, ResultSetViewImpl view) Constructs a new DraggableListItem.
- 
Method SummaryModifier and TypeMethodDescriptionIf this is a workflow-item, this method returns the ID of the attached document.Returns the view this DraggableListItem belongs to.Returns the name of the DDC this item belongs to.Returns the ID that identifies the document represented by this ResultListItem.org.zkoss.zul.ImageintReturns the index of this item in the list like it was returned from the query.getType()booleanReturns true if this item represents any kind of folder.booleanisUnread()Returns true if this item was not yet read.booleanReturns true if this item is contained in a workflow-inbox.voidsetExpandImage(org.zkoss.zul.Image expImage) voidsetRead()Sets the CSS style for a read document.voidSets the CSS style for an unread document.Methods inherited from class org.zkoss.zul.ListitemaddMoved, beforeChildAdded, beforeParentChanged, clone, getExtraCtrl, getImage, getIndex, getLabel, getListbox, getListgroup, getMaxlength, getMold, getSrc, getValue, getZclass, isCheckable, isDisabled, isLoaded, isSelectable, isSelected, renderProperties, setCheckable, setDisabled, setHflex, setImage, setIndex, setLabel, setSelectable, setSelected, setSrc, setStubonly, setStubonly, setValue, setVisible, setWidth, smartUpdate, smartUpdate, smartUpdateMethods inherited from class org.zkoss.zul.impl.XulElementgetContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesMethods inherited from class org.zkoss.zk.ui.HtmlBasedComponentaddSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyMethods inherited from class org.zkoss.zk.ui.AbstractComponentaddAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, 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, insertBefore, invalidate, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerializeMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.zkoss.zk.ui.sys.ComponentCtrlinvalidatePartialMethods inherited from interface com.saperion.ngc.resultset.ResultListItemgetIndex, isSelected, setFocus, setSelected
- 
Constructor Details- 
DraggableListItempublic DraggableListItem(ResultProperties properties, ResultSetViewImpl view) throws DocumentIdentificationException Constructs a new DraggableListItem.- Parameters:
- properties- properties of this item
- view- parent view
- Throws:
- DocumentIdentificationException- document identification exception
 
 
- 
- 
Method Details- 
getOriginalIndexpublic int getOriginalIndex()Description copied from interface:ResultListItemReturns the index of this item in the list like it was returned from the query. This index does not change when the list gets sorted.- Specified by:
- getOriginalIndexin interface- ResultListItem
- Returns:
- original item index
 
- 
isWorkflowItempublic boolean isWorkflowItem()Description copied from interface:ResultListItemReturns true if this item is contained in a workflow-inbox.- Specified by:
- isWorkflowItemin interface- ResultListItem
- Returns:
- true if it is a workflow item
 
- 
isFolderItempublic boolean isFolderItem()Description copied from interface:ResultListItemReturns true if this item represents any kind of folder.- Specified by:
- isFolderItemin interface- ResultListItem
- Returns:
- true if this is a folder item
 
- 
getDocumentIdDescription copied from interface:ResultListItemReturns the ID that identifies the document represented by this ResultListItem.- Specified by:
- getDocumentIdin interface- ResultListItem
- Returns:
- the document id
 
- 
getAttachmentIdDescription copied from interface:ResultListItemIf this is a workflow-item, this method returns the ID of the attached document. If this is not a workflow-item, this method returns null.- Specified by:
- getAttachmentIdin interface- ResultListItem
- Returns:
- the attachment id
 
- 
getDdcNameDescription copied from interface:ResultListItemReturns the name of the DDC this item belongs to.- Specified by:
- getDdcNamein interface- ResultListItem
- Returns:
- ddc name
 
- 
getCorrespondingViewReturns the view this DraggableListItem belongs to.- Specified by:
- getCorrespondingViewin interface- ResultListItem
- Returns:
- parent view
 
- 
getType- Specified by:
- getTypein interface- TypedListitem
- Returns:
- the type of the list item
- See Also:
 
- 
getExpandImagepublic org.zkoss.zul.Image getExpandImage()- Returns:
- expand image
 
- 
setExpandImagepublic void setExpandImage(org.zkoss.zul.Image expImage) - Parameters:
- expImage- the expand image to set
 
- 
isUnreadpublic boolean isUnread()Description copied from interface:ResultListItemReturns true if this item was not yet read.- Specified by:
- isUnreadin interface- ResultListItem
- Returns:
- true if this item is unread (for workflow only)
 
- 
setReadpublic void setRead()Sets the CSS style for a read document.- Specified by:
- setReadin interface- ResultListItem
 
- 
setUnreadpublic void setUnread()Sets the CSS style for an unread document.- Specified by:
- setUnreadin interface- ResultListItem
 
 
-