fredsa / gwt-dnd

Library providing easy to use mouse or touch based drag-and-drop capabilities to GWT
43 stars 41 forks source link

GridConstrainedDropController getters & setters for gridX & gridY #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using the GridConstrainedDropController in my project and have a small 
request.... is it possible to add getters / setters to the gridX and gridY 
fields?

My drop target has a % width and resizes with the browser window, which 
requires me to constantly re-set the gridX value. However, in order to set 
the gridX I had to create my own implementation of the 
GridConstrainedDropController. And to do that I had to re-create the 
com.allen_sauer.gwt.dnd.client.drop package structure in my project due to 
protected variables.

I know it is a minor detail but just thought I would throw it out there...

Original issue reported on code.google.com by Brad.Ryd...@gmail.com on 22 Jun 2009 at 10:11

GoogleCodeExporter commented 9 years ago
You are free to copy the source code from GridConstrainedDropController.java 
and use it 
in your project with the necessary changes.

Thanks

Original comment by fredsa on 29 Jun 2009 at 4:55

GoogleCodeExporter commented 9 years ago

Original comment by fredsa on 31 Jan 2012 at 6:14