Interface UIItemView

    • Field Summary

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

        APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void setDDContext​(DragAndDropContext ddContext)  
      void updateActivation()
      Called whenever the activation needs to be updated i.e.
      void updateActiveItems()
      Called whenever the currently active items need to be re-rendered.
      int updateItem​(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)
      try to update rows containing the specified items
      void updateItems()
      Called whenever the items have changed in some way e.g.
      void updateSelection()
      Called whenever the selection is changed in some way and the view needs to update itself accordingly.
      • Methods inherited from interface org.zkoss.zk.ui.Component

        addEventListener, addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getDefinition, getDesktop, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getShadowVariable, getShadowVariable, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, query, queryAll, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride
      • Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent

        focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex
      • Methods inherited from interface org.zkoss.zk.ui.ext.Scope

        addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
    • Method Detail

      • updateItems

        void updateItems()
        Called whenever the items have changed in some way e.g. an item has been added or removed.
      • updateActiveItems

        void updateActiveItems()
        Called whenever the currently active items need to be re-rendered.

        Note: Does not update the activation itself. For that purpose use updateActivation().

        See Also:
        updateActivation()
      • updateItem

        int updateItem​(TypedObject item,
                       java.util.Set<PropertyDescriptor> modifiedProperties)
        try to update rows containing the specified items
        Parameters:
        item - the item
        modifiedProperties - modified properties
        Returns:
        the number of updated rows
      • updateActivation

        void updateActivation()
        Called whenever the activation needs to be updated i.e. which items are currently rendered as "active".

        Note: Does not re-render the items themselves, only the activation state of them. In order to update the items use updateActiveItems().

      • updateSelection

        void updateSelection()
        Called whenever the selection is changed in some way and the view needs to update itself accordingly.