|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.salespointframework.desktop.renderer.AbstractListViewRenderer
org.salespointframework.desktop.renderer.CatalogListViewRenderer
org.salespointframework.desktop.renderer.CountingStockListViewRenderer
public class CountingStockListViewRenderer
Default ListCellRenderer for CountingStock items
| 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 | |
|---|---|
protected javax.swing.JLabel |
count
count label |
protected float |
countScale
count label scale. value is multiplied with component height. 0f < scale <= 1f |
protected boolean |
renderCount
true, if count should be displayed |
| 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 | |
|---|---|
CountingStockListViewRenderer()
default constructor |
|
CountingStockListViewRenderer(CatalogListViewRenderer.ShadowStyle shadowStyle,
java.util.Locale locale)
constructor |
|
CountingStockListViewRenderer(CatalogListViewRenderer.ShadowStyle shadowStyle,
java.util.Locale locale,
int renderAttributes)
constructor |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
getCacheKey(java.lang.Object value)
override cache key method to receive a unique key. and make dnd working. |
protected CatalogItem |
getCatalogItem(AbstractListViewRenderer.RenderContext renderContext)
extract CatalogItem form RenderContext |
protected int |
getCount(AbstractListViewRenderer.RenderContext renderContext)
extract count from RenderContext |
protected void |
initializeCSComponents()
create necessary components |
protected void |
initializeCSComponentValues()
set and update component values |
protected void |
render()
render |
protected void |
renderCSComponents()
put components on AbstractListViewRenderer.workingComponent |
void |
setCountScale(float scale)
set countScale |
| 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 |
| Field Detail |
|---|
protected javax.swing.JLabel count
protected float countScale
protected boolean renderCount
| Constructor Detail |
|---|
public CountingStockListViewRenderer()
public CountingStockListViewRenderer(CatalogListViewRenderer.ShadowStyle shadowStyle,
java.util.Locale locale)
shadowStyle - CatalogListViewRenderer.shadowStylelocale - CatalogListViewRenderer.locale
public CountingStockListViewRenderer(CatalogListViewRenderer.ShadowStyle shadowStyle,
java.util.Locale locale,
int renderAttributes)
shadowStyle - CatalogListViewRenderer.shadowStylelocale - CatalogListViewRenderer.localerenderAttributes - CatalogListViewRenderer.renderAttributes| Method Detail |
|---|
public void setCountScale(float scale)
countScale
scale - new scaleprotected java.lang.Object getCacheKey(java.lang.Object value)
getCacheKey in class AbstractListViewRendererprotected CatalogItem getCatalogItem(AbstractListViewRenderer.RenderContext renderContext)
CatalogItem form RenderContext
getCatalogItem in class CatalogListViewRendererprotected int getCount(AbstractListViewRenderer.RenderContext renderContext)
RenderContext
renderContext -
protected void initializeCSComponents()
protected void initializeCSComponentValues()
protected void renderCSComponents()
AbstractListViewRenderer.workingComponent
protected void render()
render in class CatalogListViewRenderer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||