When I log the eventdata from a mouse click I can see the following object information:
(MouseEvent) MouseEvent [source = TableView@904d6b5[styleClass=table-view], target = Text[text="Shepparton", x=0.0, y=0.0, alignment=LEFT, origin=BASELINE, boundsType=LOGICAL_VERTICAL_CENTER, font=Font[name=System Regular, family=System, style=Regular, size=15.0], fontSmoothingType=LCD, fill=0xffffffff], eventType = MOUSE_CLICKED, consumed = false, x = 769.0, y = 282.0, z = 0.0, button = SECONDARY, pickResult = PickResult [node = Text[text="Shepparton", x=0.0, y=0.0, alignment=LEFT, origin=BASELINE, boundsType=LOGICAL_VERTICAL_CENTER, font=Font[name=System Regular, family=System, style=Regular, size=15.0], fontSmoothingType=LCD, fill=0xffffffff], point = Point3D [x = 63.0, y = -2.0, z = 0.0], distance = 1772.7241335952167]
I can see the the text or node with the string "Shepparton" This is what I need to extract into a variable. How can I do this? Please I had a look around but cannot find an answer.
I use a TBLViewAgents_MouseClicked (EventData As MouseEvent) this will show me all the cells data when I click onto it like the sample above. I just need to extract info from it.
Hope somebody can help Thanks
(MouseEvent) MouseEvent [source = TableView@904d6b5[styleClass=table-view], target = Text[text="Shepparton", x=0.0, y=0.0, alignment=LEFT, origin=BASELINE, boundsType=LOGICAL_VERTICAL_CENTER, font=Font[name=System Regular, family=System, style=Regular, size=15.0], fontSmoothingType=LCD, fill=0xffffffff], eventType = MOUSE_CLICKED, consumed = false, x = 769.0, y = 282.0, z = 0.0, button = SECONDARY, pickResult = PickResult [node = Text[text="Shepparton", x=0.0, y=0.0, alignment=LEFT, origin=BASELINE, boundsType=LOGICAL_VERTICAL_CENTER, font=Font[name=System Regular, family=System, style=Regular, size=15.0], fontSmoothingType=LCD, fill=0xffffffff], point = Point3D [x = 63.0, y = -2.0, z = 0.0], distance = 1772.7241335952167]
I can see the the text or node with the string "Shepparton" This is what I need to extract into a variable. How can I do this? Please I had a look around but cannot find an answer.
I use a TBLViewAgents_MouseClicked (EventData As MouseEvent) this will show me all the cells data when I click onto it like the sample above. I just need to extract info from it.
Hope somebody can help Thanks