org.salespointframework.desktop.dnd
Class DefaultListViewDnDMotionComponent

java.lang.Object
  extended by org.salespointframework.desktop.dnd.DefaultListViewDnDMotionComponent
All Implemented Interfaces:
DnDMotionComponent

public class DefaultListViewDnDMotionComponent
extends java.lang.Object
implements DnDMotionComponent

default DnDMotionComponent for JListView uses ListCellRenderer

Since:
4.0
Author:
Thomas Kissinger

Nested Class Summary
static class DefaultListViewDnDMotionComponent.ShadowCatalogItem
          shadow item to move multiple CatalogItems
static class DefaultListViewDnDMotionComponent.ShadowCountingStockItemDBEntry
          shadow item to move multiple items
 
Field Summary
protected  ImagePanel imagePanel
          image panel
protected  java.lang.Object item
          transfered item
protected  JListView listView
          list view
 
Constructor Summary
DefaultListViewDnDMotionComponent(JListView jlv)
          default constructor
 
Method Summary
 javax.swing.JComponent getDnDMotionComponent(java.lang.Object item, int count)
          use ListCellRenderer to render image
 void updateDnDMotionComponentCount(int count)
          set item count and use ListCellRenderer again to render preview
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listView

protected JListView listView
list view


imagePanel

protected ImagePanel imagePanel
image panel


item

protected java.lang.Object item
transfered item

Constructor Detail

DefaultListViewDnDMotionComponent

public DefaultListViewDnDMotionComponent(JListView jlv)
default constructor

Parameters:
jlv - owninf JListView
Method Detail

getDnDMotionComponent

public javax.swing.JComponent getDnDMotionComponent(java.lang.Object item,
                                                    int count)
use ListCellRenderer to render image

Specified by:
getDnDMotionComponent in interface DnDMotionComponent
Parameters:
item - item that is transferred
count - number of transferred items
Returns:

updateDnDMotionComponentCount

public void updateDnDMotionComponentCount(int count)
set item count and use ListCellRenderer again to render preview

Specified by:
updateDnDMotionComponentCount in interface DnDMotionComponent
Parameters:
count - new count