Drag and Drop of cell content between 2 tables

Hi Guys,
Iam into implementing drag and drop of cell contents between 2 different tables,say Table1 and Table2.(Iam not dragging and dropping rows or cells,Just copying the content of one cell to another).
Have extended the java tutorial class "TableTransferHandler" and "StringTransferHandler" under http://java.sun.com/docs/books/tutorial/uiswing/examples/dnd/index.html#ExtendedDndDemo to satisfy my needs.
The drag is enabled for Table1 and table2 as follows.
jTable1.setDragEnabled(true);
jTable1.setTransferHandler(new TableTransferHandler());
jTable2.setDragEnabled(true);
jTable2.setTransferHandler(new TableTransferHandler());
Dont be taken aback with the code I have put.It just to show what I have done..
My questions are put at the end of the post..
//String Transfer Handler class.
public abstract class StringTransferHandler extends TransferHandler {
    protected abstract String exportString(JComponent c);
    protected abstract void importString(JComponent c, String str);
    protected abstract void cleanup(JComponent c, boolean remove);
    protected Transferable createTransferable(JComponent c) {
        return new StringSelection(exportString(c));
    public int getSourceActions(JComponent c) {
        return COPY_OR_MOVE;
    public boolean importData(JComponent c, Transferable t) {
        if (canImport(c, t.getTransferDataFlavors())) {
            try {
                String str = (String)t.getTransferData(DataFlavor.stringFlavor);
                importString(c, str);
                return true;
            } catch (UnsupportedFlavorException ufe) {
            } catch (IOException ioe) {
        return false;
    protected void exportDone(JComponent c, Transferable data, int action) {
        cleanup(c, action == MOVE);
    public boolean canImport(JComponent c, DataFlavor[] flavors) {
          JTable table = (JTable)c;         
         int selColIndex = table.getSelectedColumn();
        for (int i = 0; i < flavors.length; i++) {
            if ((DataFlavor.stringFlavor.equals(flavors))&& (selColIndex !=0)) {
return true;
return false;
}//TableTransferHandler classpublic class TableTransferHandler extends StringTransferHandler {
private int[] rows = null;
private int addIndex = -1; //Location where items were added
private int addCount = 0; //Number of items added.
protected String exportString(JComponent c) {
JTable table = (JTable)c;
rows = table.getSelectedRows();
StringBuffer buff = new StringBuffer();
int selRowIndex = table.getSelectedRow();
int selColIndex = table.getSelectedColumn();
String val = table.getValueAt(selRowIndex,selColIndex).toString();
buff.append(val);
return buff.toString();
protected void importString(JComponent c, String str) {
JTable target = (JTable)c;
DefaultTableModel model = (DefaultTableModel)target.getModel();
//int index = target.getSelectedRow();
int row = target.getSelectedRow();
int column = target.getSelectedColumn();
target.setValueAt(str, row, column);
protected void cleanup(JComponent c, boolean remove) {
}Now I want to put in the following functionality into my program...
[1]prevent dragging and dropping text in to the same table.That means I dont want to drag a cell content from Table1  and drop to another cell in Table1. Want to drag and drop cell content only from Table1 to Table2.
[2]Change cursor on a un-defined Target. That means how to prevent a drag from a particular column in Table1.Also how to prevent a drop to a particular column in Table2. How to change the cursor to a "NO-DRAG" cursoror "NO-DROP" cursor.
Could it be done using Drag Source Listener and drop Target Listener?.
If yes,How can these listeners attached to the table and how to do it?
If No,How Could it be done?
[3]Want to change the background colour of the cell being dragged and also the background colour of the target cell where the drop is made...
[4]Is there any out of the box way to make an undo in the target cell(where drop was made) so that the old cell value is brought back.
How can I extend my code to take care of the above said things.
Any help or suggestions is greatly appreciated.....
Edited by: Kohinoor on Jan 17, 2008 10:58 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Hi Guys,
Iam into implementing drag and drop of cell contents between 2 different tables,say Table1 and Table2.(Iam not dragging and dropping rows or cells,Just copying the content of one cell to another).
Have extended the java tutorial class "TableTransferHandler" and "StringTransferHandler" under http://java.sun.com/docs/books/tutorial/uiswing/examples/dnd/index.html#ExtendedDndDemo to satisfy my needs.
The drag is enabled for Table1 and table2 as follows.
jTable1.setDragEnabled(true);
jTable1.setTransferHandler(new TableTransferHandler());
jTable2.setDragEnabled(true);
jTable2.setTransferHandler(new TableTransferHandler());
Dont be taken aback with the code I have put.It just to show what I have done..
My questions are put at the end of the post..
//String Transfer Handler class.
public abstract class StringTransferHandler extends TransferHandler {
    protected abstract String exportString(JComponent c);
    protected abstract void importString(JComponent c, String str);
    protected abstract void cleanup(JComponent c, boolean remove);
    protected Transferable createTransferable(JComponent c) {
        return new StringSelection(exportString(c));
    public int getSourceActions(JComponent c) {
        return COPY_OR_MOVE;
    public boolean importData(JComponent c, Transferable t) {
        if (canImport(c, t.getTransferDataFlavors())) {
            try {
                String str = (String)t.getTransferData(DataFlavor.stringFlavor);
                importString(c, str);
                return true;
            } catch (UnsupportedFlavorException ufe) {
            } catch (IOException ioe) {
        return false;
    protected void exportDone(JComponent c, Transferable data, int action) {
        cleanup(c, action == MOVE);
    public boolean canImport(JComponent c, DataFlavor[] flavors) {
          JTable table = (JTable)c;         
         int selColIndex = table.getSelectedColumn();
        for (int i = 0; i < flavors.length; i++) {
            if ((DataFlavor.stringFlavor.equals(flavors))&& (selColIndex !=0)) {
return true;
return false;
}//TableTransferHandler classpublic class TableTransferHandler extends StringTransferHandler {
private int[] rows = null;
private int addIndex = -1; //Location where items were added
private int addCount = 0; //Number of items added.
protected String exportString(JComponent c) {
JTable table = (JTable)c;
rows = table.getSelectedRows();
StringBuffer buff = new StringBuffer();
int selRowIndex = table.getSelectedRow();
int selColIndex = table.getSelectedColumn();
String val = table.getValueAt(selRowIndex,selColIndex).toString();
buff.append(val);
return buff.toString();
protected void importString(JComponent c, String str) {
JTable target = (JTable)c;
DefaultTableModel model = (DefaultTableModel)target.getModel();
//int index = target.getSelectedRow();
int row = target.getSelectedRow();
int column = target.getSelectedColumn();
target.setValueAt(str, row, column);
protected void cleanup(JComponent c, boolean remove) {
}Now I want to put in the following functionality into my program...
[1]prevent dragging and dropping text in to the same table.That means I dont want to drag a cell content from Table1  and drop to another cell in Table1. Want to drag and drop cell content only from Table1 to Table2.
[2]Change cursor on a un-defined Target. That means how to prevent a drag from a particular column in Table1.Also how to prevent a drop to a particular column in Table2. How to change the cursor to a "NO-DRAG" cursoror "NO-DROP" cursor.
Could it be done using Drag Source Listener and drop Target Listener?.
If yes,How can these listeners attached to the table and how to do it?
If No,How Could it be done?
[3]Want to change the background colour of the cell being dragged and also the background colour of the target cell where the drop is made...
[4]Is there any out of the box way to make an undo in the target cell(where drop was made) so that the old cell value is brought back.
How can I extend my code to take care of the above said things.
Any help or suggestions is greatly appreciated.....
Edited by: Kohinoor on Jan 17, 2008 10:58 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Drag and drop of multiple nodes between 2 trees

    Hi,
    I am trying to implement a drag and drop of multiple nodes between two different trees. A simple drag drop written on the lines of the demo code RSDEMO_DRAG_DROP_TREE_MULTI works perfectly fine. But my requirement is, when a child (leaf) node is dragged, if its parent is not present in the target tree, that too has to be dragged and dropped from left to right. When I try to manually add nodes to the target tree, it dumps because the node key table and drag drop object have fewer nodes than what I am trying to add. So it always dumps in the drag_drop_complete method.
    I have also tried putting this code in the PBO of my screen, calling a subroutine to refresh my tree with all nodes required. But I realise that the PBO does not get called after a drag drop. Is there a way to achieve this? Any help would be greatly appreciated. Thank you.
    Regards,
    Nithya

    There's a Multi-Select TreeView sample on the WindowsClient.com, you can download it. Then you can drag multi nodes as follows:
    Code Snippet
    private void Form2_Load(object sender, EventArgs e)
                this.listBox1.AllowDrop = true;
                this.listBox1.DragOver += new DragEventHandler(listBox1_DragOver);
                this.listBox1.DragDrop += new DragEventHandler(listBox1_DragDrop);
                this.multiSelectTreeView1.ItemDrag += new
                     ItemDragEventHandler(multiSelectTreeView1_ItemDrag);
            void multiSelectTreeView1_ItemDrag(object sender, ItemDragEventArgs e)
                this.multiSelectTreeView1.DoDragDrop(this.multiSelectTreeView1.SelectedNodes,
                     DragDropEffects.Move);
            void listBox1_DragDrop(object sender, DragEventArgs e)
                ArrayList selectNodes = e.Data.GetData(
                    e.Data.GetFormats()[0]) as ArrayList;
                foreach (TreeNode node in selectNodes)
                    this.listBox1.Items.Add(node.Text);
            void listBox1_DragOver(object sender, DragEventArgs e)
                 e.Effect = DragDropEffects.Move;

  • AS2 drag and drop a masked content from loadMovie clip

    In the main content, when I have a movie clip like this   a1.a2.a3 while  a3 inside a2 and a2 inside a1, and a2 is a masked layer movie clip.
    I can drag and drop the masked content (while a1 stay still) with like this   a1.a2.onPress = function () { startDrag(this); }  and a1.a2.onRelease = function () { stopDrag(); }
    but then what i need is a1 stay in main content, while moved a2.a3 to an external .swf, and use loadMovie to put .swf(a2.a3) back into a1, and I can still drag/drop a2.a3 when a1 stay still.
    I tried differetn methods they all not working.  I've learned that you need to create another MC inside a1 like this a1.a4.a2.a3 ( while a2.a3 from loadMovie clip). it only work if I want to drag a1. but if I want to drag masked content a2.a3 it still doesn't.
    I really need help it's a project for work.

    if I apply drag to a1.a4 , it will still move the whole thing but not just masked content which is in a2.a3
    I pretty much given up on this one at this point..   gonna just throw everything into just one big swf save the struggling time,
    but thank  you for your input.

  • Drag and Drop for Tree in a Table

    I have placed a tree in a table using the example provided in an article "Creating TreeTables in Swing" in java.sun.com. But , instead of using the FileSystem data with which the example was explained , i have passed my own data...Then i created a panel wherein i placed two of these tables with buttons in between.
    The buttons are meant for data transfer....The problem is if i implement Drag and Drop support for the TreeTable the Tree embedded in the Table doesn't expand and collapsing properly....
    Can there be any reason that if a tree is placed in a Jtable and the drag and drop is enabled using setDragEnabled(true) will it effect the normal behaviour

    You can implement DropTargetListener, DragSourceListener, DragGestureListener like the following:
    public class MyTree extends JTree
                implements DropTargetListener, DragSourceListener, DragGestureListener {
        public void dragEnter (DropTargetDragEvent event) {
            event.acceptDrag (DnDConstants.ACTION_MOVE);
        public void dragExit (DropTargetEvent event) {
            //System.out.println( "dragExit");
        public void dragOver (DropTargetDragEvent event) {
        public void drop (DropTargetDropEvent event) {
            // place your code for action after drop
        public void dropActionChanged ( DropTargetDragEvent event ) {
        public void dragGestureRecognized( DragGestureEvent event) {
        public void dragDropEnd (DragSourceDropEvent event) {  
        public void dragEnter (DragSourceDragEvent event) {
            //System.out.println( " dragEnter");
        public void dragExit (DragSourceEvent event) {
            //System.out.println( "dragExit");
        public void dragOver (DragSourceDragEvent event) {
            //System.out.println( "dragExit");
        public void dropActionChanged ( DragSourceDragEvent event) {
            //System.out.println( "dropActionChanged");
    }Hope this can help.

  • Drag and Drop CSV file onto a table in Number

    Hi everyone !
    I really love the new version of iWork. However I can't find a feature I was heavilly using which is the drag and drop of a CSV file into numbers which creates the table associated to this file.
    Is there anyone who has find a way to re-activate this feature? Or will I have to open new number spreadsheat each time I want to import CSV ?
    Thanks for your help !
    Vincent.

    Jerrold Green1 wrote:
    I have very few photos in my Contacts, so I saw the problem on my first try.
    Exactly what happens here too when dragging from Contacts; I typically don't have photos there either. I submitted a "bug" report via Provide Numbers Feedback.
    Do you still get misalignment of column headers when dragging or pasting csv or tsv (i.e. not from Contacts)?  I've had pretty good results with csv and tsv here in v. 3.2, a welcome change from the earlier releases.
    SG

  • Reordering of rows - issue with drag and drop of editable columns in table

    JDeveloper: 11.1.1.6.0
    ADF Faces - Drag and Drop for reordering of rows within the same af:table
    I have a requirement for reordering rows in a table using drag and drop. This table is loaded using a list and I am able to programmatically do the reordering of the rows based on the events of drag and drop by manipulating the list. Reordering of rows is working fine if all the columns are read only. For all the input text and input date columns the values are not getting reordered. Anyone has any idea on what the issue may be with reordering of the rows for editable columns/rows (af:inputText and af:inputDate) in af:table. Below is what Iam doing on drop event which is a collection drop target.
    public DnDAction dropCollection(DropEvent dropEvent) {
    try
    Object dropSite = dropEvent.getDropSite();
    Transferable transferable = dropEvent.getTransferable();
    DataFlavor<RowKeySet> rowKeySetFlavor = DataFlavor.getDataFlavor(RowKeySet.class, "rowmove");
    RowKeySet rowKeySet = transferable.getData(rowKeySetFlavor);
    RichTable table = (RichTable) dropEvent.getDragComponent();
    if (rowKeySet != null)
    CollectionModel dragModel = transferable.getData(CollectionModel.class);
    Object dragM = dragModel.getRowData(0);
    Object currKey = rowKeySet.iterator().next();
    dragModel.setRowKey(currKey);
    table.setRowKey(currKey);
    OrderData orderData = (OrderData)this.prodReportTableData.get(Integer.parseInt(currKey.toString()));
    this.prodReportTableData.remove(Integer.parseInt(currKey.toString()));
    this.prodReportTableData.add(Integer.parseInt(dropSite.toString()), orderData);
    OrderData orderDataAdded = this.prodReportTableData.get(Integer.parseInt(dropSite.toString()));
    JSFUtils.addPartialTarget(this.getProdReportTableBinding());
    catch(Exception e)
    e.printStackTrace();
    return DnDAction.MOVE;
    Code snippet from UI:
    <af:table value="#{pageFlowScope.prodReportBackingBean.prodReportTableData}"
    var="row" styleClass="AFStretchWidth" rowBandingInterval="0"
    rows="40" emptyText="No data to display." id="t1"
    partialTriggers=":::cb1" columnStretching="column:c3"
    binding="#{pageFlowScope.prodReportBackingBean.prodReportTableBinding}" summary="PROD TABLE">
    <af:dragSource actions="MOVE" defaultAction="MOVE"
    discriminant="rowmove"
    dragDropEndListener="#{pageFlowScope.prodReportBackingBean.afterDragAndDrop}"/>
    <af:collectionDropTarget dropListener="#{pageFlowScope.prodReportBackingBean.dropCollection}"
    actions="MOVE"
    modelName="rowmove"/>

    Hi,
    not sure its the reason but you have huge bummer in your configuration.
    <af:table value="#{pageFlowScope.prodReportBackingBean.prodReportTableData}"
    var="row" styleClass="AFStretchWidth" rowBandingInterval="0"
    rows="40" emptyText="No data to display." id="t1"
    partialTriggers=":::cb1" columnStretching="column:c3"
    *binding="#{pageFlowScope.prodReportBackingBean.prodReportTableBinding}"* summary="PROD TABLE">
    JSF component bindings should not be to beans in a scope larger than request to avoid stale component instances.
    Frank

  • How to drag and drop a sub tree between 2 treeview?

    Suppose I have 2 tree rendered in 2 treeview. Then I want to drag and drop any subtree on any node between the 2 tree.
    For example, in tree 1, if I drag node node1 and drop it on tree 2 node node2. I want all nodes from node1(subtree) moved to node 2 in tree 2.
    How can I do it? Should I code for treeview 1 begindrag event, and code for treeview 2 dragenter event?
    and how to move a sub tree with pb built-in function?

    Hi Kent,
    I have just experimented with drag and drop between treeviews. Below is your bare minimum and caters for one node only. It does not drag any children along. If you drag an item it loses any children. Although it works both ways and within.
    The handle is set in the dragbegin events.
    In the dragdrop events you get source as an argument which is a pointer to the treeview where the drag started.
    You get the node using GetItem ( ref treeviewitem ), then InsertItemSort as a child of the node dropped on.
    NOTE: Must uncheck DisableDragAndDrop property for both treeviews.
    // Instance Variable
    ulong draggedhandle
    type tv_1 from treeview within w_treehop
    string dragicon = "Form!"
    boolean dragauto = true
    boolean disabledragdrop = false
    end type
    event begindrag;
    draggedhandle = handle
    end event
    event dragdrop;
    treeview tvSource
    treeviewitem ltvidropped, ltvidragged
    tvSource = source
    if draggedhandle > 0
      if handle <> draggedhandle or tvSource <> this then
        tvSource.GetItem( draggedhandle , ltvidragged )
        this.GetItem( handle , ltvidropped)
        this.Insertitemsort( handle, ltvidragged )
        tvSource.Deleteitem( draggedhandle )
        draggedhandle = 0
      end if
    end if
    end event
    type tv_2 from treeview within w_treehop
    string dragicon = "Form!"
    boolean dragauto = true
    boolean disabledragdrop = false
    end type
    event begindrag;
    draggedhandle = handle
    end event
    event dragdrop;
    treeview tvSource
    treeviewitem ltvidropped, ltvidragged
    tvSource = source
    if draggedhandle > 0
      if handle <> draggedhandle or tvSource <> this then
        tvSource.GetItem( draggedhandle , ltvidragged )
        this.GetItem( handle , ltvidropped)
        this.Insertitemsort( handle, ltvidragged )
        tvSource.Deleteitem( draggedhandle )
        draggedhandle = 0
      end if
    end if
    end event
    To carry over nested treeview items (children) you can use FindItem ( draggedhandle, navigationcode )
    navigationcode as per help:
         ChildTreeItem! The first child of itemhandle.
         NextTreeItem! The sibling after itemhandle. A sibling is an item at the same level with the same parent.
    HTH
    Lars

  • Drag and drop column header in a table

    Hi all,
    I need to drag the Column header in a table dynamically. When I drag the column
    out of the table, The table should be rearranged accordingly
    NOTE: The output is displayed in the form of XML(XSL).
    Pls help me solve the problem .
    Thanks in advance,
    Ganesh

    You can implement DropTargetListener, DragSourceListener, DragGestureListener like the following:
    public class MyTree extends JTree
                implements DropTargetListener, DragSourceListener, DragGestureListener {
        public void dragEnter (DropTargetDragEvent event) {
            event.acceptDrag (DnDConstants.ACTION_MOVE);
        public void dragExit (DropTargetEvent event) {
            //System.out.println( "dragExit");
        public void dragOver (DropTargetDragEvent event) {
        public void drop (DropTargetDropEvent event) {
            // place your code for action after drop
        public void dropActionChanged ( DropTargetDragEvent event ) {
        public void dragGestureRecognized( DragGestureEvent event) {
        public void dragDropEnd (DragSourceDropEvent event) {  
        public void dragEnter (DragSourceDragEvent event) {
            //System.out.println( " dragEnter");
        public void dragExit (DragSourceEvent event) {
            //System.out.println( "dragExit");
        public void dragOver (DragSourceDragEvent event) {
            //System.out.println( "dragExit");
        public void dropActionChanged ( DragSourceDragEvent event) {
            //System.out.println( "dropActionChanged");
    }Hope this can help.

  • Drag and drop ALV to table control

    Hi all,
    Does anyone know if it is possible to program the drag-and-drop functionality from an ALV list to a table control? I would like to have this feature to let the user enter data on 1 screen. On the left part the user sees an ALV list and on the right the user sees the online transaction. I would like the user to enter data simply by drag and drop instead of having to enter the data.
    Does someone has a sample program for this?
    Regards,
    Kris

    Hi Kris
    I can download the programs and send them to you, but you should give me your e-mail.
    Anyway you can use Drag and Drop if you build your table control by ALV, i.e. ALV GRID.
    But I'm using 4.7 and I don't know how class CL_GUI_ALV_GRID is in your release, I believe the release 4.6B is one of first release whit this class.
    Max

  • How to Drag and Drop in between Stacks?

    I have a folder with various stacks and single images that I would like to sort manually. It seems impossible to drag and drop an image in between two stacks. It always ends up stacked with one or the other. I am being very careful to be sure that neither stack shows a border around it or is lighter than the other. But it makes no difference. Even if I expand both stacks, I can't drop an image in between. I have to completely UNSTACK the images, drag and then RE-STACK. Am I missing something??(running LR 2.4 on OSX 10.5.8)

    Yeah, it's a bit tricky, messing with stacks and drag-and-drop.
    Try going the other way round: drag and drop your stack (by selecting all images of the stack) instead of your single image, sometimes it helps (depending on the situation). The Remove from Stack command also helps to extract a single image from a stack without breaking and re-stacking.

  • Drag and Drop of Page from Content Finder into Page Component

    Hi,
    Does anybody has a sample code for Page component which accepts the page when dragging and dropping from the content finder? Basically I am trying to create a web page with page component on it and customized the content finder to display all the pages that I needed on a separate tab, I am trying to drag and drop the pages from the content finder to the page component of the web page that I created, but it is not working for me. If someone has any sample working code please share it.
    Thanks

    Hi,
    There's no direct support for this. But you could implement
    drag and drop the way you normally would in javascript. Except
    here, on mouseUp over a div encapsulating the object or embed tag
    (the flash object), you'll need to make a call into actionscript
    from javascript indicating that a drag and drop happened.
    For more info, see
    how
    to drag and drop using javascript and
    actionscript
    and javascript communication

  • Any fixes for drag and drop not working in WAD with IE9?

    I have exactly the same issue as is described in WAD Problem - can't modify and Drag&drop in Web App Designer (WAD) doesn't work but unfortunately I don't have the option of going from IE9 back to IE8.  Has anybody found a fix for using drag and drop in WAD with IE9?
    Edited by: Jason Muzzy on Jul 22, 2011 1:09 AM

    Hi Jason,
    Thanks for replying .
    But I am facing this isssue in Web Application Designer. The link which I have shared shows the behavious of cursor while dragging and dropping
    Drop not allowed ("blocked traffic" sign)
    Drill across (arrow pointing to the right)
    Drill down (arrow pointing down)
    Exchange dimensions (exchange icon)
    Add to filter (add icon)
    Remove from filter (remove icon)
    Reorder list (reorder icon).
    This issue I am getting in Web Application Designer itself.In WAD 7.X ANALYSIS TABLE do we have any option from which we can disable drag and drop of cells because it is destroying the view of report output .
    In WAD 7.X we have option of Activate Navigation in ANALYSIS TABLE but if we disable this our context will get disable and it shows the default Browser context menu.We have not provided any such options so that its original layout will retain back .
    The solution they have mentioned to Disable Drag and Drop is not available in WAD ,its available in Analyzer.
    Please let me know if you have found any solution for this.

  • Can  we have drag and drop functionality in xcelsius

    hi,
    i want to know wheather we can give adding and removing columns functionality to the user like we can give in the dash board created in wad.because most users want to analyse in their own way along with the standard one we show initially.
    can anyone tell me some features which are best in xcelsius than in wad or visual composer.
    so that it will be easy to choose what is the best tool according to the endusers requirement.

    There isn't a "painting" function built-in.
    You can do drag and drop in ADF Faces between components though.
    If you want to show relationship between components with lines - you might want to look into the Hierarchy Viewer.
    http://jdevadf.oracle.com/adf-richclient-demo/components/ariaXml.jspx

  • Drag and Drop Functionality in ADF

    Hi, i have a cuestion,
    I need to develop an application, but i have to determine if it is possible.
    I explain..
    I have to make an applicacion with elements with drag and drop functionality, i mean.. 3 to n containers on the page, a toolbar, with the possible elements to drag and drop on the containers,
    later on i have to join that elements with lines, and to save the view, so, when the users open their workspace, they can see their last view saved state.
    In a few words, that's my issue.
    I ve been search about it, and i found something about drop target option about panel box componnents, but nothing about drawing lines and saved view states.
    Do you know about some examples, o an example application, any help resource will be wellcome
    Thanks in Advance!!!!
    AB

    There isn't a "painting" function built-in.
    You can do drag and drop in ADF Faces between components though.
    If you want to show relationship between components with lines - you might want to look into the Hierarchy Viewer.
    http://jdevadf.oracle.com/adf-richclient-demo/components/ariaXml.jspx

  • Reordering photos in folders by drag and drop

    Hi, When reordering photos by attempting to drag and drop a stack of photos between two other stacks, instead of inserting the selected stack between the 2 stacks, my v2.3 insists on adding the stack to one of the existing stacks. If I drag and drop a single picture between stacks, things are fine. Also, dragging and dropping a stack between two single photos is okay. But not trying to reorder stacks. Any ideas? Thanks!

    Since in iPhoto folders do not hold photos but hold other folders or albums there is a good chance of confusion here - are you speaking of albums or events?
    In general you select photos  by clicking on one and depressing the command key and clicking on additional photos --  or probably easier selecting oen photo and creating an album and then dragging additional photos to that album - once you have what you want to send collected open the album and select all and e-mail them
    LN

Maybe you are looking for