Table-Bean 1.2 features Drag&Drop and context menus

Only two weeks after its initial release we are proud to announce the new version of the Table-Bean. Since it has two great additions, we have raised the version number to 1.2. The following two things have been added:

  • Support for Drag & Drop
  • Support for context menus (right click)The Drag & Drop features allow the user to drag one or more rows from Table-Bean to another. The methods that have been added give you control over what goes on. They allow you to:
  • fire a method if the user starts to drag
  • fire a method if the user drags something over a bean and decide if dropping is allowed or not per Table-Bean
  • fire a method when the user moves the mouse over a table’s row that lets you decide if dropping is allowed on a per row basis
  • fire a method once the user drops what he has dragged
  • receive the element name from the element where the dragging started and the drop occured
  • receive the dropAction (copy or move)To see Drag & Drop in action, please visit our website which shows a flash movie demonstrating the functionality.

The context menu functionality can be used in two ways:

  • you can register a method that is called whenever the user right clicks; that method has to return a menuItem array created with Servoy’s popupmenu plugin (just like any other popupmenu). This allows you to provide different popupmenus depending on the row the user clicks on.
  • you can provide a menuItem array directly; then the popupmenu will be the same for the whole tableThe context menu is just a Servoy popup menu, but shown if the user right clicks the mouse:

We have also added a method that lets you set the text orientation (alignment) in a normal table column.

The sample solution has been updated to demonstrate the new features. Also, all Drag & Drop methods have extensive sample code. The update is free for registered users and is available from our website.