Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Drag And Drop in TileGrid
Drag And Drop in TileGrid [message #1860636] Tue, 22 August 2023 14:28 Go to next message
Oueslati Anis is currently offline Oueslati AnisFriend
Messages: 128
Registered: June 2014
Location: Paris
Senior Member
Hello
how to implement a drag and drop in Tile Grid
I wanted to test the code but at any moment it does not enter the breakpoint.

protected TransferObject execDragRequest() {
TransferObject m_Object = (TransferObject)getTileGrid().getSelectedTiles();
return m_Object;
}

protected void execDropRequest(TransferObject transferObject) {						
}


Please advise
Anis

[Updated on: Tue, 22 August 2023 14:32]

Report message to a moderator

Re: Drag And Drop in TileGrid [message #1860898 is a reply to message #1860636] Thu, 07 September 2023 15:21 Go to previous message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 201
Registered: November 2010
Senior Member
Hi Anis

There is currently no support for in-app drag-and-drop. execDragRequest() and execDropRequest() are remnants from the old Swing and SWT UIs. It may be possible that they will be used again in the future, but currently there are no such plans. Implementing drag-and-drop on existing complex widgets is hard, because the drag action might interfere with existing features.

Usually, developers get around this limitation using one of two approaches:


  1. Create a custom JavaScript widget and implement their own drag-and-drop logic within the widget. This is not a trivial task, but will result in the most freedom.
  2. Add some menus or buttons that can move elements to the desired location. This covers the frequent case of having a list of elements that need to be rearranged by the user. Simply add a "Move up" and "Move down" menu to your table and your are done. This can be done using standard Scout widgets and you can even easily add keystrokes for power users. It allows for easier testing and helps people with accesibility issues.


Regards,
Beat
Previous Topic:Hyperlink in docx4j
Next Topic:Extension visibility
Goto Forum:
  


Current Time: Sun Feb 25 19:59:13 GMT 2024

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

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

Back to the top