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 DocumentId
getAttachmentId()
If this is a workflow-item, this method returns the ID of the attached document.ResultSetView
getCorrespondingView()
Returns the view this DraggableListItem belongs to.java.lang.String
getDdcName()
Returns the name of the DDC this item belongs to.DocumentId
getDocumentId()
Returns the ID that identifies the document represented by this ResultListItem.org.zkoss.zul.Image
getExpandImage()
int
getOriginalIndex()
Returns the index of this item in the list like it was returned from the query.TypedListitem.ListitemType
getType()
boolean
isFolderItem()
Returns true if this item represents any kind of folder.boolean
isUnread()
Returns true if this item was not yet read.boolean
isWorkflowItem()
Returns true if this item is contained in a workflow-inbox.void
setExpandImage(org.zkoss.zul.Image expImage)
void
setRead()
Sets the CSS style for a read document.void
setUnread()
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:ResultListItem
Returns 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:
getOriginalIndex
in interfaceResultListItem
- Returns:
- original item index
-
isWorkflowItem
public boolean isWorkflowItem()
Description copied from interface:ResultListItem
Returns true if this item is contained in a workflow-inbox.- Specified by:
isWorkflowItem
in interfaceResultListItem
- Returns:
- true if it is a workflow item
-
isFolderItem
public boolean isFolderItem()
Description copied from interface:ResultListItem
Returns true if this item represents any kind of folder.- Specified by:
isFolderItem
in interfaceResultListItem
- Returns:
- true if this is a folder item
-
getDocumentId
public DocumentId getDocumentId()
Description copied from interface:ResultListItem
Returns the ID that identifies the document represented by this ResultListItem.- Specified by:
getDocumentId
in interfaceResultListItem
- Returns:
- the document id
-
getAttachmentId
public DocumentId getAttachmentId()
Description copied from interface:ResultListItem
If 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:
getAttachmentId
in interfaceResultListItem
- Returns:
- the attachment id
-
getDdcName
public java.lang.String getDdcName()
Description copied from interface:ResultListItem
Returns the name of the DDC this item belongs to.- Specified by:
getDdcName
in interfaceResultListItem
- Returns:
- ddc name
-
getCorrespondingView
public ResultSetView getCorrespondingView()
Returns the view this DraggableListItem belongs to.- Specified by:
getCorrespondingView
in interfaceResultListItem
- Returns:
- parent view
-
getType
public TypedListitem.ListitemType getType()
- Specified by:
getType
in 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:ResultListItem
Returns true if this item was not yet read.- Specified by:
isUnread
in 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:
setRead
in interfaceResultListItem
-
setUnread
public void setUnread()
Sets the CSS style for an unread document.- Specified by:
setUnread
in interfaceResultListItem
-
-