Class DefaultProductPriceCellRenderer

  • All Implemented Interfaces:
    CellRenderer

    public class DefaultProductPriceCellRenderer
    extends java.lang.Object
    implements CellRenderer
    Simple cell renderer that renders a string representation of the value of interest.
    • Constructor Detail

      • DefaultProductPriceCellRenderer

        public DefaultProductPriceCellRenderer()
    • Method Detail

      • render

        public void render​(TableModel model,
                           int colIndex,
                           int rowIndex,
                           org.zkoss.zk.ui.Component parent)
        Description copied from interface: CellRenderer
        Renders the cell content of the cell at position (colIndex, rowIndex).
        Specified by:
        render in interface CellRenderer
        Parameters:
        model - the underlying table model containing information about the cell that is to be rendered
        colIndex - zero based column index of the cell to be rendered
        rowIndex - zero based row index of the cell to be rendered
        parent - the parent component that will contain the view components created by the renderer
      • getProductNamesShortened

        protected java.lang.String getProductNamesShortened​(java.util.Collection<TypedObject> associatedProducts)
      • getBasePrice

        protected java.lang.String getBasePrice​(ProductModel pm)
      • getTypeService

        protected TypeService getTypeService()