org.salespointframework.desktop.renderer
Class DataBasketListViewRenderer

java.lang.Object
  extended by org.salespointframework.desktop.renderer.AbstractListViewRenderer
      extended by org.salespointframework.desktop.renderer.CatalogListViewRenderer
          extended by org.salespointframework.desktop.renderer.CountingStockListViewRenderer
              extended by org.salespointframework.desktop.renderer.DataBasketListViewRenderer
All Implemented Interfaces:
javax.swing.ListCellRenderer

public class DataBasketListViewRenderer
extends CountingStockListViewRenderer

ListCellRenderer used for DataBasketEntrys

Since:
4.0
Author:
Thomas Kissinger

Nested Class Summary
 
Nested classes/interfaces inherited from class org.salespointframework.desktop.renderer.CatalogListViewRenderer
CatalogListViewRenderer.ShadowStyle
 
Nested classes/interfaces inherited from class org.salespointframework.desktop.renderer.AbstractListViewRenderer
AbstractListViewRenderer.CategoryItem, AbstractListViewRenderer.RenderComponent, AbstractListViewRenderer.RenderContext
 
Field Summary
 
Fields inherited from class org.salespointframework.desktop.renderer.CountingStockListViewRenderer
count, countScale, renderCount
 
Fields inherited from class org.salespointframework.desktop.renderer.CatalogListViewRenderer
imagePanel, locale, name, nameScaleFactor, price, priceScalefactor, RENDER_LAYOUT_SIDE_BY_SIDE, RENDER_LAYOUT_UPON_THE_OTHER, RENDER_ORIENTATION_NAME_CENTER, RENDER_ORIENTATION_NAME_LEFT, RENDER_ORIENTATION_NAME_RIGHT, RENDER_ORIENTATION_PRICE_CENTER, RENDER_ORIENTATION_PRICE_LEFT, RENDER_ORIENTATION_PRICE_RIGHT, RENDER_SHOW_NAME, RENDER_SHOW_PRICE, renderAttributes, shadowStyle
 
Fields inherited from class org.salespointframework.desktop.renderer.AbstractListViewRenderer
cache, categoryLine, categoryName, RENDER_ELEMENT_TYPE_CELL, RENDER_ELEMENT_TYPE_SEPERATOR, renderContext, workingComponent
 
Constructor Summary
DataBasketListViewRenderer()
          default constructor
DataBasketListViewRenderer(CatalogListViewRenderer.ShadowStyle shadowStyle, java.util.Locale locale)
          constructor
DataBasketListViewRenderer(CatalogListViewRenderer.ShadowStyle shadowStyle, java.util.Locale locale, int renderAttributes)
          constructor
 
Method Summary
protected  java.lang.Object getCacheKey(java.lang.Object value)
          override cache key function for drag'n drop
protected  CatalogItem getCatalogItem(AbstractListViewRenderer.RenderContext renderContext)
          extract CatalogItem
protected  int getCount(AbstractListViewRenderer.RenderContext renderContext)
          extract count
protected  DataBasketEntry getDBE(AbstractListViewRenderer.RenderContext renderContext)
          extract DataBasketEntry
 
Methods inherited from class org.salespointframework.desktop.renderer.CountingStockListViewRenderer
initializeCSComponents, initializeCSComponentValues, render, renderCSComponents, setCountScale
 
Methods inherited from class org.salespointframework.desktop.renderer.CatalogListViewRenderer
initializeComponents, initializeComponentValues, renderRack, setNameScaleFactor, setPriceScaleFactor
 
Methods inherited from class org.salespointframework.desktop.renderer.AbstractListViewRenderer
createWorkingComponent, getCategoryItem, getListCellRendererComponent, initializeSeperatorComponents, initializeSeperatorComponentValues, renderComponent, renderSeperator, renderSeperatorRack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataBasketListViewRenderer

public DataBasketListViewRenderer()
default constructor


DataBasketListViewRenderer

public DataBasketListViewRenderer(CatalogListViewRenderer.ShadowStyle shadowStyle,
                                  java.util.Locale locale)
constructor

Parameters:
shadowStyle - CatalogListViewRenderer.shadowStyle
locale - CatalogListViewRenderer.locale

DataBasketListViewRenderer

public DataBasketListViewRenderer(CatalogListViewRenderer.ShadowStyle shadowStyle,
                                  java.util.Locale locale,
                                  int renderAttributes)
constructor

Parameters:
shadowStyle - CatalogListViewRenderer.shadowStyle
locale - CatalogListViewRenderer.locale
renderAttributes - CatalogListViewRenderer.renderAttributes
Method Detail

getCacheKey

protected java.lang.Object getCacheKey(java.lang.Object value)
override cache key function for drag'n drop

Overrides:
getCacheKey in class CountingStockListViewRenderer
Returns:
unique cache key

getDBE

protected DataBasketEntry getDBE(AbstractListViewRenderer.RenderContext renderContext)
extract DataBasketEntry

Parameters:
renderContext -
Returns:

getCatalogItem

protected CatalogItem getCatalogItem(AbstractListViewRenderer.RenderContext renderContext)
extract CatalogItem

Overrides:
getCatalogItem in class CountingStockListViewRenderer
Returns:

getCount

protected int getCount(AbstractListViewRenderer.RenderContext renderContext)
extract count

Overrides:
getCount in class CountingStockListViewRenderer
Returns: