org.salespointframework.desktop.dnd
Class DefaultDnDMotionComponent

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

public class DefaultDnDMotionComponent
extends java.lang.Object
implements DnDMotionComponent

default motion component. used for JAbstractTables for example

Since:
4.0
Author:
Thomas Kissinger

Field Summary
protected  javax.swing.JLabel dragCount
          count label
protected  javax.swing.JPanel dragPanel
          the motion components root panel
 
Constructor Summary
DefaultDnDMotionComponent()
           
 
Method Summary
 javax.swing.JComponent getDnDMotionComponent(java.lang.Object item, int count)
          extract CatalogItem from item and create motion component
 void updateDnDMotionComponentCount(int count)
          update dragCount text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dragPanel

protected javax.swing.JPanel dragPanel
the motion components root panel


dragCount

protected javax.swing.JLabel dragCount
count label

Constructor Detail

DefaultDnDMotionComponent

public DefaultDnDMotionComponent()
Method Detail

getDnDMotionComponent

public javax.swing.JComponent getDnDMotionComponent(java.lang.Object item,
                                                    int count)
extract CatalogItem from item and create motion component

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

updateDnDMotionComponentCount

public void updateDnDMotionComponentCount(int count)
update dragCount text

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