I would like to have a FolderLayout only accept certain types of Views
(based on the result of a method called in my view classes). How can I do
this?
I tried overriding the allowsDrop(PartPane part) method of a ViewStack
object used by the FolderLayout, but then I don't know how I can connect
this? Do I have to subclass also PageLayout so that the createFolder()
method returns an instance FolderLayout initialized with my subclass
MyViewStack? Is there a better way to do it?