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.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
  • Field Summary

    Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent

    _zclass

    Fields inherited from interface org.zkoss.zk.ui.Component

    APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE

    Fields 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

    Constructors
    Constructor
    Description
    Constructs a new DraggableListItem.
  • Method Summary

    Modifier and Type
    Method
    Description
    If 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.Image
     
    int
    Returns the index of this item in the list like it was returned from the query.
    boolean
    Returns true if this item represents any kind of folder.
    boolean
    Returns true if this item was not yet read.
    boolean
    Returns true if this item is contained in a workflow-inbox.
    void
    setExpandImage(org.zkoss.zul.Image expImage)
     
    void
    Sets the CSS style for a read document.
    void
    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, 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, 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, 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, willSerialize

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl

    invalidatePartial

    Methods inherited from interface com.saperion.ngc.resultset.ResultListItem

    getIndex, isSelected, setFocus, setSelected
  • Constructor Details

  • Method Details

    • 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 interface ResultListItem
      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 interface ResultListItem
      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 interface ResultListItem
      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 interface ResultListItem
      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 interface ResultListItem
      Returns:
      the attachment id
    • getDdcName

      public String getDdcName()
      Description copied from interface: ResultListItem
      Returns the name of the DDC this item belongs to.
      Specified by:
      getDdcName in interface ResultListItem
      Returns:
      ddc name
    • getCorrespondingView

      public ResultSetView getCorrespondingView()
      Returns the view this DraggableListItem belongs to.
      Specified by:
      getCorrespondingView in interface ResultListItem
      Returns:
      parent view
    • getType

      public TypedListitem.ListitemType getType()
      Specified by:
      getType in interface TypedListitem
      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: ResultListItem
      Returns true if this item was not yet read.
      Specified by:
      isUnread in interface ResultListItem
      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 interface ResultListItem
    • setUnread

      public void setUnread()
      Sets the CSS style for an unread document.
      Specified by:
      setUnread in interface ResultListItem