Can I make a copy of an AdvancedDataGrid Item Renderer?

I have manual drag-and-drop functionality built in to my
AdvancedDataGrid (ADG). Right now, I am building my own custom drag
proxy using a Container instance and grabbing the text to use from
the "selectedItem" property. This creates a suitable image to drag.
However, what I'd really like to do is have the drag proxy look
exactly like the item renderer of the item I'm dragging. I don't
want the whole row, though, only one cell - that's why I can't use
the ADG's "dragImage" property. When I run the code below to
attempt to make a copy of the itemRenderer instance, the
itemRenderer in the ADG for the source item is cleared out - the
label disappears. Is there some way to make just a "copy" of the
itemRenderer instance, so that it doesn't disappear from the
ADG?

"ericbelair" <[email protected]> wrote in
message
news:gecebe$17j$[email protected]..
>I have manual drag-and-drop functionality built in to my
AdvancedDataGrid
> (ADG). Right now, I am building my own custom drag proxy
using a Container
> instance and grabbing the text to use from the
"selectedItem" property.
> This
> creates a suitable image to drag. However, what I'd
really like to do is
> have
> the drag proxy look exactly like the item renderer of
the item I'm
> dragging. I
> don't want the whole row, though, only one cell - that's
why I can't use
> the
> ADG's "dragImage" property. When I run the code below to
attempt to make a
> copy
> of the itemRenderer instance, the itemRenderer in the
ADG for the source
> item
> is cleared out - the label disappears. Is there some way
to make just a
> "copy"
> of the itemRenderer instance, so that it doesn't
disappear from the ADG?
>
> // This is the container I use for my dragProxy
> var proxyBox:VBox = new VBox();
>
> for each (var item:Object in this.selectedItems)
> {
> var selectedItemRenderer:IListItemRenderer =
> super.itemToItemRenderer(item);
>
> proxyBox.addChild(DisplayObject(selectedItemRenderer));
> }
The itemRenderer is made by the ADG using the ClassFactory of
the
itemRenderer class.
I think you can search for the appropriate ClassFactory for
that column,
then make a new renderer from that Factory. Set its data
and/or listData to
the same as the existing renderer.
This might look something like this:
var factory:IFactory;
var renderer:IListItemRenderer;
//populate factory with the appropriate renderer factory
//you need to do this part
factory=?;
renderer = factory.getInstance();
renderer.data=selectedItemRenderer.data;
renderer.listData=selectedItemRenderer.listData;
proxyBox.addChild(DisplayObject(renderer));
You also might find that you can shortcut this by using new
(getDefinitionByName(selectedItemRenderer.className)) instead
of the
factory.
HTH;
Amy

Similar Messages

  • Do you have to down load from the internet using apple's recover partition, every time you need to do a clean install? or can you make a copy of Mt Lion onto a USB stick and install off that?

    Do you have to down load Mountain Lion from the internet every time you need to do a clean install? or can you make a copy of Mt Lion onto a USB stick and install off that?
    Thanks

    Yes you can make a USB stick of Lion or Mt Lion. Use Lion Disk Maker after you download OS X from the internet.
    For Lion you have to point the download to an external drive and watch when it completes and reboots the system to start the install disconnect the external. If you bought Mt Lion from the Mac App Store then you can download it from there and just cancel the install when it comes up on the desktop.
    If you are downloading from the Recovery HD or from the Online Internet Recovery system, slightly different then the built in Recovery HD, then again you need to point it to an external drive and discoonect that drive when the system reboots to start the real install.
    Then use Lion disk maker to create either a DVD disc or USB thumb of the install files.

  • AdvancedDataGrid Item Renderer Problem

    I have a problem in AdvancedDataGrid Item Renderer.
    The Grid is having dynamic add/remove row functionality and the first column I having an Item Renderer.
    I am facing a problem when I add and remove row from the grid. The item Renderer.
    is misplaced in different row.
    If you click on the node new row will get added. (only by clicking Asset Sale & CDS node, not for other nodes).
    Try clicking more than 6 times then do delete row you can see the problem.
    Please find the attachment for code sample.
    I have been trying this out for quiet some time. But no hope.
    Can any one solve this issue?
    Thax
    Tamil Selvan

    Sorry, I forgot to tell the file in the attached zip.
    THe file name is: ActionPlanTest.html

  • How can I make a COPY/duplicate of an Event in iPhoto11

    I need to make a copy of an 'event' I have in iPhoto on iMac.  I want the original event in tacked; I want to remove photos on the COPY.
    Thanks - Jose

    You can't, really. You could export the photos from iPhoto, then import them as a new event, but that would be pointless.
    Why not just export from the Event? It won't remove the photos from iPhoto you know?
    File -> Export
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • How can I make a copy of the FAQs module or filter on language?

    Hi,
    is it possible to make a copy of the FAQs module? I need to have FAQs in different languages.
    I can add event, photo, news ands media modules but not a new FAQs module.
    I also found that you can add a category and display the FAQs with the filter: cr or individual filter. But where do I add the category name to filter on?

    Solved!
    Quick solution: the ID is used for the category name, so I need to do a time consuming process to find the id.
    Result:
    {module_faq,c,19227,,ajax,}
    Great!

  • How can I make a copy of my book project?

    I made a book for myself with photos from our summer holidays. Now I want to make a slightly different version for my mum, with more photos of HER in it. So I wanted to make a copy of my book album, so I can have one version that's the book I made for me and another which is the alternative version for my mum.
    How the heck do I do that though? I can't burn the book album to CD, I can't duplicated the whole folder, and I can't even figure out how to copy all the photos I've used into another folder so I can redo the book layout stuff.
    I really don't want to have to go through all the five hundred photos we took this summer and start from scratch...

    You want to do both in your copy of iPhoto, right?
    Right/control click on the book project and select duplicate and edit the duplicate (book not the folder since the book is more or less how you want it).
    The photos in the book folder are not actual photos, just aliases to the one copy you store in the iPhoto directory, so make a copy of the book and edit that.
    None of the albums in iPhoto are the actual photos. You can make ten albums and put say, 100 identical photos in each one, and the size of the overall iPhoto library doesn't go up. They are just pictures of the photos if that makes sense. If you delete the album, the album is gone but in the library the photos are still all there.

  • How can I make printed copy of photo CD

    I have a folder of images that I will burn to CD. How can I make a printed copy of those images with text to file with the CD?
    imac g5   Mac OS X (10.3.9)  

    You can print a contact sheet with titles in iPhoto 6. I searched the iPhoto 5 forum and found a workaround from Ken.
    " Instead of Print, Contact Sheet use Share, Export, Web Page. .The "contact sheet" will be the thumbnails so be sure to select the Show title and Show comment boxes. Create a webpage, open it in your browser and print from there."
    And more detailed directions from Elizabeth Kley:
    "Creating Contact Sheet with Titles
    1 - Put the files you want to print in an album and arrange in the order you'd like.
    2 - Go to the File->Export->Web Page menu option.
    3 - While in the Web page window, select the number of thumbnails you'd like across each page (iPhoto will keep you informed on how many pages it will take).
    4 - Click on Show Title under thumbnails and click on Export. Then select the location where you'd like the resulting files to be saved (create a temporary folder to contain them).
    5 - Once saved, go the folder and open the index.html file with your browser. You will get a page with your thumbnails and titles beneath them.
    6 - Print that browser page and you've got your contact sheet with file names (or comments if desired). "
    Is this what you had in mind?

  • Once iDVD has been used to create a DVD, how can I make another copy?

    This may be a rookie question, but because of my bad history with computers, I generally don't like to use too much of my hard drive. I have a lot of family videos in iMovie now, and I want to be able to make a DVD and delete the originals from my hard drive. I also want to be able to make another copy of the DVD later.
    Is there a way to do that with just the Mac or is something else needed...since it seems that I am essentially burning DVDs?

    If you do a 'Save As Disk Image' from within your iDVD project when you have finished it, you will be making a disk image file for that project. Disk image files are self-contained, thus all the media information is encoded into the disk image file. You can then safely delete all the photos, movies, music files that were used to create your iDVD project and still retain the ability to burn more DVDs of that project in the future.
    You use Disk Utility to burn more copies.
    I save disk image files for all of my iDVD projects and place those files on a large external hard drive.

  • Can no longer cut/copy/paste and drag items with my mouse

    I can no longer cut/copy and paste items. I've tried restarting and loading all updates, but that didnt help. I can also no longer drag items using my mouse. This includes in programs and on my desktop. Any ideas?

    Chitown2000 wrote:
    I can no longer cut/copy and paste items. I've tried restarting and loading all updates, but that didnt help. I can also no longer drag items using my mouse. This includes in programs and on my desktop. Any ideas?
    Many months ago I had a problem with my mouse on my iMac G5. Basically, I just wasn't able do much with my mouse anymore, sorta like you. It was terrible, having a mouse but not being able to do much with it.
    Is your problem the same one I have? Don't know, but it sure sounds familiar. I did manage to fix the problem by accident, because I'm not really sure what I did to fix it, but I wrote down the incident what I was doing when it was corrected. I stored it away just in case it ever happened again.
    I don't even remember what forum I was on when I wrote this, but here's what I wrote and maybe it will help, hopefully:
    *Ok everybody, I finally got proper behavior, it's just too bad I'm not sure of the procedure.*
    *"When I go to bed I usually run the mouse pointer to the upper left corner to activate the screensaver. Of course it didn't work. But I also knew that clicking a button causes the mouse to be sensed, so I was pushing some of the buttons while in the corner to see if I could get the screensaver going.*
    *Well, after doing this, everything is back to normal operation again. So, I fixed it totally by accident. Makes me wonder if there's some features that are turned on and off somehow by doing whatever it was I did up in that corner."*

  • How can I make a copy of a song, change the album cover of the copy, but have the original stay the same?

    So, this is going to take some time to explain, but I'm going to try it.
    I'm trying to build a compilation playlist with songs from other albums. I want to change the name of the album in the info of the song and the cover for the new playlist. When I do this, the original copy changes as well. I don't want this to happen. Is it possible to avoid this?

    Frankly I would just make your album a playlist and live with the original album names in the individual items.
    If you really want to name them individually you will have to make copies of the files and add them a second time to iTunes.  One easy way to do this is drag the tracks you want to a different drive (it could just be a flash drive).  It will make copies of the files on that other drive. Now drag them back to an empty playlist window.  That way you will be able to keep them separate from the original track until you can rename them.  In dragging back to iTunes it will put a copy in the iTunes folders so you will end up with two copies of the files, the second one for editing.

  • Can I make a Copy of Address Book?

    Hi,
    I really like Address Book. I have a group of children that I'd like to make a list of. They are all part of a program that was formed back in 1992. Our club has recruited about 1300 since then and I would like to make use of Address Book as a way to track and record them. I have a directory in a Word category, but it doesn't work the way Address Book does, and is difficult to use sometimes. The notes section of Address Book where a majority of data would obviously be placed, would also be a great way to keep contact with them if we have any activity that may interest them.
    My questions are:
    1. Can a copy of Address Book be made so that I can have Address Book #1 which I currently use, and then #2 for the children in the program?
    2. If this can be done, would I be able to keep a separate mail program to track correspondence?
    Thank you for any help!

    For the Address Book, you can simply create a Group for your club. Click the + sign in the bottom left corner, and create two (or more Groups). You may want one for your club, one for your personal contacts. When you click on that Group, you will see only those contacts. This is your best bet if you want to stick with Address Book for this.
    If you want two truly separate address books, that is more difficult to manage. You can have a personal address book, and use File > Back up Address Book to save that as an archive. Then delete those entries and put your club members in. Then use File > Back up Address Book again to create an archive of that book (give it a different name!!). To switch between books, use the File > Revert to Address Book Backup command to load the other book. You will need to re-back up each book every time you make a change to it else the changes will be lost. That's why you're better off using the Groups - that's what they're for!
    As for Mail, again, separate programs are not the best solution. You can set up a different email account specific for your club emails (with your ISP, gmail, whatever) and different User Profiles in Mail for your personal email account and your club email account. If you are going to use only one email account, you can set create a folder in Mail to store your club emails, and you may consider a filter to sort replies from those 1300 people into a folder automatically.
    Hope this helps...

  • Can't make virtual copy

    I am unable to create a virtual copy of photos in just one of my Collections. Try to make a virtual copy results in "no photo selected" in navigator. I switched to another Collection and had no problem. Any ideas?

    Bill, Lightroom 2.3 is so much better than Lightroom 2.0 or 1.x for the vast majority of Lightroom users that it's worth the trouble.  I don't blame you for being reluctant to go through an 18 hour download, but it's definitely the thing to try.  Do you have a friend, or workplace, with broadband access who can download it for you in a minute or two and put it on a USB key, or burn it to a CD?  As you probably know, it will install as a free upgrade and link itself automatically to your LR 2.0 key, even if it's downloaded on another PC, once it's installed to yours.
    I also see, now that the other two threads I was referring to pop on the right of this display under "More Like This".

  • HT4736 can't make a copy of photo

    Recently (I think) unable to copy a photo in photos file.

    select teh photos in iPHoto and predd command and D to duplicate the photos
    LN

  • Can anyone make a copy of os 9 for me

    Ok so I recently booted up my Ibook g3 Ive had for years and played around with it. I went on startup disk and changed it to "Machintosh HDD" then I rebooted it and now it gets to the screen with the grey apple and freeze's the loading thing and say's in the top right; "/etc/master.passwd: No such file or directory" and it also says it on the second line. I can type commands. My only solution I have worked out is that I get a new os 9 disk as i do not have mine any longer and restore the hard drive, However I cannot seem to find any on the internet or anywhere. I do not care about any files on the laptop so I'm up for restoring in any way shape or form. I hope someone has a solution as I am really desperate!!!!!!!
    Thanks Tom.

    Some additional notes:
    There were two 800 MHz iBooks. The earlier one had a Combo drive (reads and writes CDs and reads DVDs).
    The later one (which is the one you've told me you have) has a CD-ROM drive which only reads CDs.
    Here is a link to Apple's list of specs on that model:
    http://support.apple.com/kb/SP100
    Also, here is a link to the software builds:
    http://support.apple.com/kb/HT2191
    This may help you in the quest for the software.
    Again, good luck.

  • Can anyone make --this fix-- work for the FONT rendering issue?

    I found this bug report and proposed fix on the webkit buglist:
    http://bugs.webkit.org/show_bug.cgi?id=14070
    Here is a link that one says can be used to fix the
    rendering issue with bold fonts.
    If anyone can make this work for Safari 3 on XP please let me know....
    Here are the text and link to the how to:
    You can fix rendering issues by changing language for non-Unicode programs. The
    instruction:
    http://www.microsoft.com/globaldev/handson/user/xpintlsupp.mspx#EVE
    You should restart system after applying setting.
    Hope this helps someone
    If not, then call apple support and complain....
    maybe if their support phones are getting hot... then they
    will fix this horrible bug

    I don't believe this is a support issue, it's rather a Bugdev issue. Use the Bug-Report field in Safari to report this directly to the engineers. I also think the bug is known and will be solved, it's therefore not really in the range of AppleCare. (Beta Software is usually unsupported!)
    MacBook Pro, MacBook, ModBook, iMac, Mac mini, PowerMac G5, iBook, Apple TV   Mac OS X (10.4.9)  

Maybe you are looking for

  • Solution Manager Project

    When creating a project in Solution Manager (solar_project_admin) I am receiving an error when creating the IMG View for the remote system. The message states that I am not authorized to display the project even though I have SAP_ALL and SAP_NEW auth

  • Error - session handle nor valid for ivi

    Hi All I have posted this question in existing thread also I guess.  I am trying to control TDK lambda power supply through LabVIEW using IVI drivers. logical name set in a MAX is same as what I am giving in VI to InitializeWithOptions.vi . However I

  • How to print Iview contents only

    Hello All, How to print IView contents only instead of the whole portal. If I use javascript function, it prints whole screen. I want to print only the IVIEW contents. IView has tableview. Thanks in advance, Praveen

  • Function Module for Info Record conditions data

    Hi, ALL I'm looking for a Function Modlue or Method that we can insert conditions datas of Info Record. Also, I'm looking for a FM that we can update them, and get these infomations. Plese let me know if you know these. Regards Rie

  • How to restore only Bluetooth driver?

    How to restore only bt driver to default manufacturer installation (windows 7 64 bit) or the way for install it as it was done by the manufacturer?