Drag and Drop List Component?

Does anyone know how to use the v2 list component to let a
user drag items from one list to another?
Thanks in advance.

No one knows of a tutorial for this?

Similar Messages

  • Firefox crashes after dragging and dropping any component.

    When the TorButton add-on is enabled, Firefox will crash when an attempt is made to drag and drop any component. This includes tabs, text, images, and any other item drag-and-drop-able under normal circumstances.
    This is a known bug and info lives at https://bugzilla.mozilla.org/show_bug.cgi?id=715885 but I don't know if any fix has been found.
    I am running version 3.6 of Firefox, which I recognize is rather out of date. This is because I have yet to update from OS X 10.4.
    Thank you for any input you have.

    It looks like the patch for this crash hasn't been checked in, and unfortunately, since firefox 3.6.28 is the last planned update for 3.6, it doesn't look like it will ever be fixed on that branch :(

  • Drag and drop List Object[] collection

    is it possible? If we combine JPA entities which are returned then we have to return List<Object[]> collection, e.g. some combination of the fields from Employees and Projects entities is returned by a service

    Not sure what this question is pertaining to. Are you referring to the use of drag and drop in the context of ADF Faces RC with JPA? Or are you describing a design time issue with JPA? Please clarify.
    Thanks,
    RiC

  • Drag and drop custom component

    I have a custom component that is a JPanel with a JTextField and a JButton. The component is a display and chooser for an address. I want to be able to copy the address from one to another with drag and drop.
    Here's what I have so far. The drag starts, but it won't allow to drop on another instance of the same class. MyTransferHandler is a simple subclass of TransferHandler that logs everything so I can watch what is happening. The canImport() method of TransferHandler is never getting called. Any ideas?
    transferHandler = new MyTransferHandler("address");
    setTransferHandler(transferHandler);
    dragListener = new MouseMotionListener() {
    public void mouseDragged(MouseEvent a_evt) {
    if (address != null) {
    TransferHandler l_h = getTransferHandler();
    l_h.exportAsDrag(PanelAddress.this, a_evt, TransferHandler.COPY);
    public void mouseMoved(MouseEvent e) {
    addMouseMotionListener(dragListener);
    txtAddress.addMouseMotionListener(dragListener);

    Figured it out while creating the SSCCE. Needed to set the TransferHandler on the text field and button because they were "hiding" the panel.
    {noformat} MyTransferHandler l_transfer_handler = new MyTransferHandler("address");{noformat}{noformat} setTransferHandler(l_transfer_handler);{noformat}{noformat} txtAddress.setTransferHandler(l_transfer_handler);{noformat}{noformat} btnChoose.setTransferHandler(l_transfer_handler);{noformat}{noformat}{noformat}

  • Drag and Drop lists

    On a slide I have a list of 50 words that the user can choose 10 from and order them from the one they like the most to the least using drag and drop.  I want to use their top 3 choices in subsequent slides with out them typing it in. Any ideas on how this can be done?
    Thanking you in advance

    Hi there
    I'm not exactly sure what you mean by your query being overtaken by others. Far as I can see, Lilybiri replied to you and nobody else. Now if you are talking about where the thread actually appears in the list of other threads in this forum and forum category, please understand that it's a really busy forum, so indeed your post *WILL* float lower and lower as others arrive. Not much we can do about that.
    Please also understand that the folks that try and help out are doing this voluntarily and have their own work to do as well as helping others.
    Adobe staff do pop in from time to time, but the forums are largely user to user.
    Cheers... Rick

  • Reset 2 drag and drop lists

    Hi,
    I have two list boxes in a form, A and B. When my page loads
    A is populated from an array and B is empty. The user drags items
    from A and drops them in B and vice vearsa.
    I have a reset button but want to know how I can reset my
    list boxes so that A is populated with all the items from the array
    again and B is empty again...
    Thanks

    Probably the easiest way would be to have 2 arrays that hold
    the data being sent to box A. Just add/or subtract from one that
    you don't care if it changes, and leave the other one alone. When
    you want to reset, just clear Array 2 and populate it again from
    Array 1. For Box B, just reset the contents of the array to nothing
    - myArrayB = new Array({item1:'',item2:''})

  • Drag and Drop Items in Reminders

    I'm disappointed that you can't drag and drop lists in the Reminders app to change the order they appear. Also it's not possible to drag and drop reminders within lists. Any possibility of adding this feature in a future release?

    Go right ahead!

  • Drag and Drop using Components[

    Hi,
    As anyone used Drag and Drop for components? I mean, allowing the user to drag and drop a component around a container? Just curious, so far from what I've seen, the only things that can be dragged/dropped are properties of a given object, such as 'text" from a JLabel.
    thanks

    IMHO, you don't need fancy drag and drop features to do that. Implementing MouseInputListener and listening for mouseDragged is a good start. Then setting the component's bounds depending on the location of the mouse at the mouseReleased event (wrt the starting offset) could be a good idea (if you're using absolute positioning, of course).
    From there, it all depends on what you want it to look like during the "transfer". You could, for instance paint the component in a BufferedImage at the start of the D&D and then paint the image with transparency as the mouse is moving.
    Camickr had an interesting post that might help you :
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=492100

  • Drag and Drop to the DeskTop

    Hi,
    I would like to be able to drag and drop a component from my Java application
    and for this component to be shown on the desk top. The idea is to have monitor
    components on the desktop which are always on top but small enough so that they
    do not take up as much space as when the window containing these components
    are open.
    I have seen an example program that does just this, it is the ICQ client. With this program
    you can create an ICQ user in the application. Dragging this user onto the desktop causes that
    componenr to remain on the desktop on top of all apps even twhen the program is restarted.
    Cool.
    Anyone know how this can be acheived in Java or via Windows API using JNI.
    Regards
    Steve
    .

    Look in the Applications folder to see if iPhoto is still there. If it is drag it back to the Finder Sidebar. If it is no longer in the Applications folder post back, you can also look in the Trash it might still be there.

  • Drag and drop a jcomponent

    I want to drag and drop a component like textbox in MS Word. I figured out that you can drag and drop image and text easily. However to drag and drop a component you may need JavaBeans Bridge for ActiveX.
    I did a little bit of research for this. I came across a tutorial from a website:
    http://www.javaworld.com/javaworld/jw-09-1998/jw-09-bridge.html
    I am novice to JavaBeans Bridge for ActiveX and I have no idea how to incorporate this in my application.
    Please help me.
    Thanks,
    Riddhi.

    It's not advanced it's ESSENTIAL and is not possible to write by hand because the NetBeans regenerate the code.....
    or "by hand" means to write
    setBounds(217,131,24,37)??????????
    I use this in DOS programms !!!!!! Pascal for DOS , FoxPro for DOS!!!!!

  • Tree Component Drag and Drop

    Hi, I've been playing around with a trail version of flex and
    was interested to know if anybody had tried to implement the drag
    and drop functionality of the Tree component to a TileList? After
    much messing about I noticed the format of the Tree data in the
    DragSource was different to that of other lists. I've tried
    overriding the addDragData method to see if I can change the format
    of the data although this seems to cause problems when the Drag
    complete event is triggered. Any ideas or help would be
    appreciated.

    Hey, Thanks for the reply. Yes this appears to work although
    it took a bit of messing around and I still had to override the
    dragCompleteHandler method of the Tree component to get the tree
    view to update. One issue I do have (This appears to be an issue
    with the tree component) is as you drag and drop files across from
    one tree to another, when you remove the last child node the parent
    node which has a folder icon changes to a document icon. Is there a
    way around this?

  • Can you drag and drop within the same list*?

    *without completely strange things happening?
    It seems like this ought to be fairly straight forward. This
    code is taken from the Flex 2 Component Explorer and I've just
    added a few Drag and Drop parameters to the list. It doesn't quite
    work. The items are duplicated, not selected, selectable. The
    behavior is a bit erratic.
    It seems very natural to want to be able to re-order a list
    using drag and drop so it seems like it should be easy. Obviously,
    I could create a second, empty list--but that would take up
    valuable screen real estate. I've seen a few posts about this and
    none of them were answered so either the solution is obvious
    (please share) or it's impossible (please share).
    Cheers,
    Steve
    <?xml version="1.0"?>
    <!-- Simple example to demonstrate the List Control -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var selectedItem:Object;
    ]]>
    </mx:Script>
    <mx:Model id="mystates">
    <states>
    <state label="Alabama" data="AL"/>
    <state label="Alaska" data="AK"/>
    <state label="Arizona" data="AZ"/>
    <state label="Arkansas" data="AR"/>
    <state label="California" data="CA"/>
    <state label="Colorado" data="CO"/>
    <state label="Connecticut" data="CT"/>
    </states>
    </mx:Model>
    <mx:Panel title="List Control Example" height="75%"
    width="75%"
    paddingTop="10" paddingBottom="10" paddingLeft="10"
    paddingRight="10">
    <mx:Label text="Select a state to see its
    abbreviation."/>
    <mx:List id="source" width="100%" color="blue"
    dataProvider="{mystates.state}"
    change="this.selectedItem=List(event.target).selectedItem"
    dragEnabled="true"
    dropEnabled="true"
    dragMoveEnabled="true"/>
    <mx:VBox width="100%">
    <mx:Label text="Selected State:
    {selectedItem.label}"/>
    <mx:Label text="State abbreviation:
    {selectedItem.data}"/>
    </mx:VBox>
    </mx:Panel>
    </mx:Application>

    The answer is, yes you can. However, I'm not sure why this
    makes a difference.
    I added creationComplete="init();" to the application tag.
    <em>Removed the model</em> and implemented this method:
    public function init(): void {
    source.dataProvider = [
    {label: "Alabama", data: "AL"},
    {label: "Alaska", data: "AK"},
    {label: "Arizona", data: "AZ"},
    {label: "California", data: "CA"},
    {label: "Colorado", data: "CO"},
    {label: "Connecticut", data: "CT"}
    and removed the dataProvider attribute from the List tag.
    Can anyone tell me why the one works and the other
    doesn't?

  • There is absolutely NO way to drag and drop newly purchased music from the Purchased list on the phone into my iTunes library?  I'm finding it hard to believe that something so simple cannot be done!

    I like to make MP3 CD's when I have people over, or when my friends have people over so I can just pop them into the CD player and let them play all night without having to worry about changing the CD or anything.  Well, Apple's music is in AAC format, so I have to convert the songs to MP3 files using the converter in iTunes.  So I'll convert them to MP3's and just delete the AAC file so I don't have doubles.  The problem is, the next time I plug the phone into my laptop to transfer new purchases, iTunes thinks that the songs I converted aren't there anymore because the phone has them as AAC files, and iTunes has them as MP3 files, so it doubles the music again...EVERY time!!  It's very frustrating!  So this is why instead of clicking Transfer Purchases, I would like to be able to just drag and drop the songs I want from the Purchased list on the phone into my iTunes library.  I hope I explained this right...lol.  Unfortunately, it doesn't seem like I'm able to do that.  I'm hoping maybe somebody here can help me out and give me some pointers on what to do about this.  Thanks!!

    That stinks!  I can actually do that at my house...I just plug my iPhone right into the wire that's plugged into my receiver in my living room...but some of my friends aren't "technology savvy"...lol...so they just have DVD players and I'll put the CD in there because it will read an MP3 disc.  What's funny, is I have the phone set to "Manually Manage Music", and when I plugged it into the laptop just now, the one song I downloaded last night on the phone, transferred over to the iTunesl library.  That NEVER happens.  And it only transferred the one song...it didn't double the other songs like it ususally does.  I swear, iTunes does what it wants, when it wants sometimes...lol.  Thank you for your quick response. 

  • Drag and Drop to Change Order in a List

    Does anyone know of an example where there is the ability to drag and drop elements in a list and thus change their order? (I.E. drag item one below item two and then item one and two change locations)
    Thanks!

    Check out http://java.sun.com/docs/books/tutorial/uiswing/misc/dnd.html
    There's an example towards the end of the page for drag-and-drop between 2 JLists. Might be a good starting point.

  • Outlook email drag and drop to sharepoint task list

    We are using using Outlook 2007 (Soon to be switching to 2010) and Sharepoint Server 2010.
    We want to allow email drag and dropping which is accomplished through the folder list view.  However when doing this this it does not take the attachment.
    My question is, is this possible or do we need to develop an add-on for outlook?
    Thanks

    Neither be it SharePoint 2010 or SharePoint 2007, you can not do it without developing an add-on or writing additional code. Depending on your complexity of SharePoint, it is relatively easy to build an add-on if you only want to drag and drop Outlook email
    to SharePoint folder.
    SharePoint Outlook Integration add on is one of such tool which is functioning well if you have a small number of mails to transfer to SharePoint, but if you drag larger number of Outlook emails to SharePoint, it is quick slow to finish the whole process. 
    Good luck.

Maybe you are looking for