Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Triggering events in NatTable(Triggering DND events on table cell)
Triggering events in NatTable [message #1457244] Fri, 31 October 2014 05:52 Go to next message
Girish Bhat is currently offline Girish BhatFriend
Messages: 22
Registered: October 2014
Location: Bangalore
Junior Member
Hi..
I have used UIBindingRegistry for DND oprtation on table cell.
I want to trigger this operation on some other event mean to say if user clicks over some button like that. Is there a way to trigger this event.

Thank you
Re: Triggering events in NatTable [message #1457279 is a reply to message #1457244] Fri, 31 October 2014 06:49 Go to previous messageGo to next message
neal zhang is currently offline neal zhangFriend
Messages: 45
Registered: July 2012
Member
HI, Nattable has a example for DND, maybe that can help you,
_781_DragAndDropExample.java add in attachment

this is all of examples
https://www.eclipse.org/downloads/download.php?file=/nattable/releases/1.1.1/NatTableExamples-1.1.1.jar
Re: Triggering events in NatTable [message #1457283 is a reply to message #1457244] Fri, 31 October 2014 06:55 Go to previous messageGo to next message
Girish Bhat is currently offline Girish BhatFriend
Messages: 22
Registered: October 2014
Location: Bangalore
Junior Member
Hi...
I have painted few cells using custom painter depending on conditions. The cell drag and drop is working for non custom painted cells.

The cell drag mode event is not triggering for custom painted cells...... please suggest a way to enable this for custom painted cells(a composite inside a cell)

Thankyou

[Updated on: Fri, 31 October 2014 06:58]

Report message to a moderator

Re: Triggering events in NatTable [message #1457290 is a reply to message #1457283] Fri, 31 October 2014 07:00 Go to previous messageGo to next message
neal zhang is currently offline neal zhangFriend
Messages: 45
Registered: July 2012
Member
Sorry, i am not sure your requirement. trigger event, we can add the listener.
i don't understand what is the different (not) custom painted cells. sorry,

[Updated on: Fri, 31 October 2014 07:30]

Report message to a moderator

Re: Triggering events in NatTable [message #1457310 is a reply to message #1457290] Fri, 31 October 2014 07:34 Go to previous messageGo to next message
Girish Bhat is currently offline Girish BhatFriend
Messages: 22
Registered: October 2014
Location: Bangalore
Junior Member
Crying or Very Sad well I want to fire an event(cell drag mode) on for custom painted cells. These cells or not firing cell drag mode event. Sad
My cell painter paints a composite(a table) in the cell i want to drag this composite and drop it another cell Sad
Re: Triggering events in NatTable [message #1457321 is a reply to message #1457310] Fri, 31 October 2014 07:46 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Your issue is that you have a painter that puts a Control over NatTable. So the event is triggered for that control and is not covered by NatTable. So you need to find a way how to transport the event from your control to NatTable.
Re: Triggering events in NatTable [message #1457361 is a reply to message #1457321] Fri, 31 October 2014 08:44 Go to previous messageGo to next message
Girish Bhat is currently offline Girish BhatFriend
Messages: 22
Registered: October 2014
Location: Bangalore
Junior Member
Yes.... exactly...... is there any command that triggers event (like resize command )
Re: Triggering events in NatTable [message #1457373 is a reply to message #1457361] Fri, 31 October 2014 08:56 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
look for IDragMode
Re: Triggering events in NatTable [message #1464250 is a reply to message #1457373] Fri, 07 November 2014 10:48 Go to previous messageGo to next message
Girish Bhat is currently offline Girish BhatFriend
Messages: 22
Registered: October 2014
Location: Bangalore
Junior Member
Hi...
When cell enters into the drag mode a overlay is appearing over the dragged cell . I am not getting how to avoid it.

[Updated on: Fri, 07 November 2014 11:39]

Report message to a moderator

Re: Triggering events in NatTable [message #1464297 is a reply to message #1464250] Fri, 07 November 2014 11:56 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
That is the CellDragMode#CellImageOverlayPainter ... typically you need to override mouseDown() and avoid registering it if you don't want it
Re: Triggering events in NatTable [message #1464365 is a reply to message #1464297] Fri, 07 November 2014 13:15 Go to previous message
Girish Bhat is currently offline Girish BhatFriend
Messages: 22
Registered: October 2014
Location: Bangalore
Junior Member
Thank you... it worked... Smile
Previous Topic:NatTabel comboBox dynamically changing values
Next Topic:Changing the Text color of the Text while entering the data in the cell
Goto Forum:
  


Current Time: Sat Apr 20 01:19:05 GMT 2024

Powered by FUDForum. Page generated in 0.02823 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top