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 Summary
Nested classes/interfaces inherited from class org.zkoss.zul.Listitem
org.zkoss.zul.Listitem.ExtraCtrlNested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.AbstractComponent.ChildrenNested classes/interfaces inherited from interface com.saperion.ngc.resultset.TypedListitem
TypedListitem.ListitemType -
Field Summary
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
_zclassFields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPEFields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
AFTER_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 Summary
ConstructorsConstructorDescriptionDraggableListItem(ResultProperties properties, ResultSetViewImpl view) Constructs a new DraggableListItem. -
Method Summary
Modifier 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.Listitem
addMoved, 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.XulElement
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesMethods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, 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.AbstractComponent
addAnnotation, 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.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
invalidatePartialMethods inherited from interface com.saperion.ngc.resultset.ResultListItem
getIndex, isSelected, setFocus, setSelected
-
Constructor Details
-
DraggableListItem
public DraggableListItem(ResultProperties properties, ResultSetViewImpl view) throws DocumentIdentificationException Constructs a new DraggableListItem.- Parameters:
properties- properties of this itemview- parent view- Throws:
DocumentIdentificationException- document identification exception
-
-
Method Details
-
getOriginalIndex
public 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 interfaceResultListItem- Returns:
- original item index
-
isWorkflowItem
public boolean isWorkflowItem()Description copied from interface:ResultListItemReturns true if this item is contained in a workflow-inbox.- Specified by:
isWorkflowItemin interfaceResultListItem- Returns:
- true if it is a workflow item
-
isFolderItem
public boolean isFolderItem()Description copied from interface:ResultListItemReturns true if this item represents any kind of folder.- Specified by:
isFolderItemin interfaceResultListItem- Returns:
- true if this is a folder item
-
getDocumentId
Description copied from interface:ResultListItemReturns the ID that identifies the document represented by this ResultListItem.- Specified by:
getDocumentIdin interfaceResultListItem- Returns:
- the document id
-
getAttachmentId
Description 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 interfaceResultListItem- Returns:
- the attachment id
-
getDdcName
Description copied from interface:ResultListItemReturns the name of the DDC this item belongs to.- Specified by:
getDdcNamein interfaceResultListItem- Returns:
- ddc name
-
getCorrespondingView
Returns the view this DraggableListItem belongs to.- Specified by:
getCorrespondingViewin interfaceResultListItem- Returns:
- parent view
-
getType
- Specified by:
getTypein interfaceTypedListitem- Returns:
- the type of the list item
- See Also:
-
getExpandImage
public org.zkoss.zul.Image getExpandImage()- Returns:
- expand image
-
setExpandImage
public void setExpandImage(org.zkoss.zul.Image expImage) - Parameters:
expImage- the expand image to set
-
isUnread
public boolean isUnread()Description copied from interface:ResultListItemReturns true if this item was not yet read.- Specified by:
isUnreadin interfaceResultListItem- Returns:
- true if this item is unread (for workflow only)
-
setRead
public void setRead()Sets the CSS style for a read document.- Specified by:
setReadin interfaceResultListItem
-
setUnread
public void setUnread()Sets the CSS style for an unread document.- Specified by:
setUnreadin interfaceResultListItem
-