public class DraggableListItem extends org.zkoss.zul.Listitem implements TypedListitem, ResultListItem
org.zkoss.zul.Listitem.ExtraCtrl
org.zkoss.zk.ui.AbstractComponent.Children
TypedListitem.ListitemType
AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED
Constructor and Description |
---|
DraggableListItem(ResultProperties properties,
ResultSetViewImpl view)
Constructs a new DraggableListItem.
|
Modifier and Type | Method and 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.
|
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.
|
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
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
focus, getAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, 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
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, equals, 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
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIndex, isSelected, setFocus, setSelected
public DraggableListItem(ResultProperties properties, ResultSetViewImpl view) throws DocumentIdentificationException
properties
- properties of this itemview
- parent viewDocumentIdentificationException
- document identification exceptionpublic int getOriginalIndex()
ResultListItem
getOriginalIndex
in interface ResultListItem
public boolean isWorkflowItem()
ResultListItem
isWorkflowItem
in interface ResultListItem
public boolean isFolderItem()
ResultListItem
isFolderItem
in interface ResultListItem
public DocumentId getDocumentId()
ResultListItem
getDocumentId
in interface ResultListItem
public DocumentId getAttachmentId()
ResultListItem
getAttachmentId
in interface ResultListItem
public String getDdcName()
ResultListItem
getDdcName
in interface ResultListItem
public ResultSetView getCorrespondingView()
getCorrespondingView
in interface ResultListItem
public TypedListitem.ListitemType getType()
getType
in interface TypedListitem
TypedListitem.getType()
public org.zkoss.zul.Image getExpandImage()
public void setExpandImage(org.zkoss.zul.Image expImage)
expImage
- the expand image to setpublic boolean isUnread()
ResultListItem
isUnread
in interface ResultListItem
public void setRead()
setRead
in interface ResultListItem
public void setUnread()
setUnread
in interface ResultListItem
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.