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,java.io.Serializable,java.lang.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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.zkoss.zul.Listitem
org.zkoss.zul.Listitem.ExtraCtrl
-
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.AbstractComponent.Children
-
Nested classes/interfaces inherited from interface com.saperion.ngc.resultset.TypedListitem
TypedListitem.ListitemType
-
-
Constructor Summary
Constructors Constructor Description DraggableListItem(ResultProperties properties, ResultSetViewImpl view)Constructs a new DraggableListItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentIdgetAttachmentId()If this is a workflow-item, this method returns the ID of the attached document.ResultSetViewgetCorrespondingView()Returns the view this DraggableListItem belongs to.java.lang.StringgetDdcName()Returns the name of the DDC this item belongs to.DocumentIdgetDocumentId()Returns the ID that identifies the document represented by this ResultListItem.org.zkoss.zul.ImagegetExpandImage()intgetOriginalIndex()Returns the index of this item in the list like it was returned from the query.TypedListitem.ListitemTypegetType()booleanisFolderItem()Returns true if this item represents any kind of folder.booleanisUnread()Returns true if this item was not yet read.booleanisWorkflowItem()Returns 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.voidsetUnread()Sets 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, smartUpdate
-
Methods inherited from class org.zkoss.zul.impl.XulElement
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
-
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, 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, setZIndexDirectly
-
Methods 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, isChildable, 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, willSerialize
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.saperion.ngc.resultset.ResultListItem
getIndex, isSelected, setFocus, setSelected
-
-
-
-
Constructor Detail
-
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 Detail
-
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
public DocumentId 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
public DocumentId 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
public java.lang.String getDdcName()
Description copied from interface:ResultListItemReturns the name of the DDC this item belongs to.- Specified by:
getDdcNamein interfaceResultListItem- Returns:
- ddc name
-
getCorrespondingView
public ResultSetView getCorrespondingView()
Returns the view this DraggableListItem belongs to.- Specified by:
getCorrespondingViewin interfaceResultListItem- Returns:
- parent view
-
getType
public TypedListitem.ListitemType getType()
- Specified by:
getTypein interfaceTypedListitem- Returns:
- the type of the list item
- See Also:
TypedListitem.getType()
-
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
-
-