Class DefaultCompareViewLayout

    • Constructor Detail

      • DefaultCompareViewLayout

        public DefaultCompareViewLayout()
    • Method Detail

      • markAsNotEqual

        public static void markAsNotEqual​(org.zkoss.zk.ui.HtmlBasedComponent component)
        Marks table cell as the one containing data not equal to reference
        Parameters:
        component - cell containing not equal data
      • markAsEqual

        public static void markAsEqual​(org.zkoss.zk.ui.HtmlBasedComponent component)
        Marks table cell as the one containing data equal to reference
        Parameters:
        component - cell containing equal data
      • markAsContentsContainer

        public static void markAsContentsContainer​(org.zkoss.zk.ui.HtmlBasedComponent component)
        Marks component as container for cell data
        Parameters:
        component - component containing cell data
      • markAsDuringCalculation

        public static void markAsDuringCalculation​(org.zkoss.zk.ui.HtmlBasedComponent component)
        Marks table cell as the one containing data that may change in near future due to ongoing calculation in background.
        Parameters:
        component - cell containing data that is an object of ongoing calculation
      • markAsCalculated

        public static void markAsCalculated​(org.zkoss.zk.ui.HtmlBasedComponent component)
        Marks table cell as the one containing data that will not change in near future due to ongoing calculation in background.
        Parameters:
        component - cell containing data that is already calculated
      • render

        public void render​(org.zkoss.zk.ui.HtmlBasedComponent component,
                           CompareView configuration,
                           CompareViewData compareViewData,
                           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,​CompareView,​CompareViewData>
        Parameters:
        component - parent component on which to render
        configuration - configuration of renderer
        compareViewData - data to be rendered
        dataType - meta information about type of data provided
        widgetInstanceManager - widget manager in scope of which renderer is used
      • collapseOtherSections

        protected void collapseOtherSections​(TableRowsGroup currentSection,
                                             TableRows sections)
      • getTableComponent

        protected Table getTableComponent​(org.zkoss.zk.ui.HtmlBasedComponent container)
      • setWidgetRenderingUtils

        public void setWidgetRenderingUtils​(WidgetRenderingUtils widgetRenderingUtils)