5 May 2010 6:30 AM #1
I am looking for a way to set the max number of rows (column items) in a Portal. I can't access the array list columns in Portal...
Anybody know a possibility?
5 May 2010 8:21 AM #2
I would extend Portal and override onDragMove. If the target column already has to many items, do nothing.
Should be quite simple to do. Only check if the targetcolumn is the startcolumn, than you always need to allow it.
6 May 2010 12:57 AM #3
Hi Sven, thanks for the quick reply.
That's right, but not applicable!? "startColumns" is private and has no getter, getColumn(int x) is also private.
The DragEvent, offers me only the coordinates. So how would you access the columns in a class that extends the portal?
6 May 2010 12:59 AM #4
use JSNI to access it.
You can also listen to the ValidateDrop event of Portal and cancel it, if the target is not allowed
6 May 2010 1:23 AM #5
Ok, that's a possibility. Perhaps you can set the visibility of the relevant members in the near future to protected, just to keep it simple.