use generics for Lists and DndClass
add generated serialVersionUID

Signed-off-by: Peter Wendorff <peter.wendorff@gmx.de>