Class DefaultQuickListItemRenderer

    • Field Detail

      • SCLASS_YW_QUICK_LIST_TILE_SUBTITLE_CONTAINER

        public static final java.lang.String SCLASS_YW_QUICK_LIST_TILE_SUBTITLE_CONTAINER
        See Also:
        Constant Field Values
      • SCLASS_YW_QUICK_LIST_TILE_SUBTITLE

        public static final java.lang.String SCLASS_YW_QUICK_LIST_TILE_SUBTITLE
        See Also:
        Constant Field Values
      • SCLASS_YW_QUICK_LIST_TILE_TITLE

        public static final java.lang.String SCLASS_YW_QUICK_LIST_TILE_TITLE
        See Also:
        Constant Field Values
      • SCLASS_YW_QUICK_LIST_TILE_TITLE_ONLY

        public static final java.lang.String SCLASS_YW_QUICK_LIST_TILE_TITLE_ONLY
        See Also:
        Constant Field Values
      • SCLASS_YW_QUICK_LIST_TILE_IMG

        public static final java.lang.String SCLASS_YW_QUICK_LIST_TILE_IMG
        See Also:
        Constant Field Values
      • SCLASS_IMG_PREVIEW_POPUP

        public static final java.lang.String SCLASS_IMG_PREVIEW_POPUP
        See Also:
        Constant Field Values
      • SCLASS_REMOVE_BUTTON

        public static final java.lang.String SCLASS_REMOVE_BUTTON
        See Also:
        Constant Field Values
      • PREVIEW_SUFFIX_QUICK_LIST

        public static final java.lang.String PREVIEW_SUFFIX_QUICK_LIST
        See Also:
        Constant Field Values
      • ATTRIBUTE_KEY_CLICKABLE

        public static final java.lang.String ATTRIBUTE_KEY_CLICKABLE
        See Also:
        Constant Field Values
      • ATTRIBUTE_CLICKABLE_TITLE

        public static final java.lang.String ATTRIBUTE_CLICKABLE_TITLE
        See Also:
        Constant Field Values
      • ATTRIBUTE_CLICKABLE_REMOVE_BUTTON

        public static final java.lang.String ATTRIBUTE_CLICKABLE_REMOVE_BUTTON
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultQuickListItemRenderer

        public DefaultQuickListItemRenderer()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.HtmlBasedComponent parent,
                           QuickList configuration,
                           java.lang.Object element,
                           DataType dataType,
                           WidgetInstanceManager widgetInstanceManager)
        Description copied from interface: WidgetComponentRenderer
        Renders a component inside parent, representing given data and complying to given ui configuration. The data should be of give dataType. The renderer implementation could communicate with underlying widget via widgetInstanceManager.
        Specified by:
        render in interface WidgetComponentRenderer<org.zkoss.zk.ui.HtmlBasedComponent,​QuickList,​java.lang.Object>
        Parameters:
        parent - parent component on which to render
        configuration - configuration of renderer
        element - data to be rendered
        dataType - meta information about type of data provided
        widgetInstanceManager - widget manager in scope of which renderer is used
      • appendRemoveButton

        protected void appendRemoveButton​(java.lang.Object object,
                                          org.zkoss.zk.ui.HtmlBasedComponent parent,
                                          QuickList configuration)
      • appendDescriptionLabels

        protected void appendDescriptionLabels​(java.lang.Object element,
                                               org.zkoss.zk.ui.HtmlBasedComponent parent,
                                               QuickList configuration,
                                               DataType dataType)
      • appendLabel

        protected void appendLabel​(java.lang.Object object,
                                   org.zkoss.zk.ui.HtmlBasedComponent tile,
                                   QuickList configuration)
      • appendThumbnailAndPopupPreview

        protected void appendThumbnailAndPopupPreview​(java.lang.Object object,
                                                      QuickList configuration,
                                                      DataType dataType,
                                                      org.zkoss.zk.ui.HtmlBasedComponent component,
                                                      WidgetInstanceManager widgetInstanceManager)
      • setLabelService

        public void setLabelService​(LabelService labelService)
      • setWidgetRenderingUtils

        public void setWidgetRenderingUtils​(WidgetRenderingUtils widgetRenderingUtils)
      • isOpenItemHyperlink

        public boolean isOpenItemHyperlink​(org.zkoss.zk.ui.Component component)
        Description copied from interface: QuickListItemRenderer
        Checks if given Component is a hyperlink opening the current item
        Specified by:
        isOpenItemHyperlink in interface QuickListItemRenderer
        Parameters:
        component - ui component
        Returns:
        true if is open hyperlink
      • isRemoveItemButton

        public boolean isRemoveItemButton​(org.zkoss.zk.ui.Component component)
        Description copied from interface: QuickListItemRenderer
        Checks if given Component is a hyperlink opening the current item
        Specified by:
        isRemoveItemButton in interface QuickListItemRenderer
        Parameters:
        component - ui component
        Returns:
        true if is remove item
      • isAllowRemove

        public boolean isAllowRemove()
      • setAllowRemove

        public void setAllowRemove​(boolean allowRemove)