B4J Question Drag drop Event

Patent

Member
Licensed User
Longtime User
Dear community,

working with the jDragandDrop Lib, and i am dropping an listview element (=row) and the result
of log(target) is:

target= () ListViewWrapper$MyCallBack$1@16ef04f[styleClass=cell indexed-cell list-cell]'RowText'

code:
B4X:
Sub dragdropTarget_DragDropped(e As DragEvent)
Dim jo As JavaObject = e
Dim target As JavaObject = jo.RunMethodJO("getTarget", Null)
Log ("target= " & target)
.
.
.
End Sub

How can i access the underlying object (@16ef04f), (which is the dropped row in the listview)?
or/and how can i access the 'RowText' (which is the content of the dropped row)?

thanks
 

Patent

Member
Licensed User
Longtime User
thank you stevel05,
this was the right suggestion.
the Methods getIndex and getItem from scene.control.IndexedCell and .Cell are working well.

.......all is starting from Class ListCell it seems.......o_O
 
Upvote 0
Top