Auto selecting ItemRenderers in a DataGroup?

I have IconItemRenderers in a DataGroup. I want the items to behave like they do in a List component: i.e. clicking an item selects that item and also deselects any other selected items.
Also the List component has a "selectedItem" property but the DataGroup does not, so when an item is selected in a DataGroup, I would want to make sure I know which item is selected.
What is a good strategy of mimicing the item selecting of the List component for the DataGroup component?

I am now manually telling the iconItemrenderers to select/deselect, but that doesn't work for a various reasons:
1) I have the DataGroup's layout set its useVirtualLayout property to true. So the IconItemRenderers are reused when I scroll to an unseen page of renderers. If I select an item and then scroll to a new down to view more renderers then one of the new renderers appears to be selected. When I scroll back to the original renderer, that renderer may or may not be selected. So I need a way to select a renderer while still being able to use useVirtualLayout.
2) Sometimes I need to programatically select the next or previous item renderer. The problem with doing it programatically is that because I am using useVirtualLayout, the renderer that I want selected may not have been rendered yet.
Is there no easy way to select/deselect renderers in a DataGroup?

Similar Messages

  • Auto selection of file from folder during uploading??

    Hi all friends,
    Iam facing with one problem I am developing one uploading software for that i have used swing and servlet.Now my problem is i want to give auto selection of file from one folder means user just copy the files from any computer on network and paste it in predefind folder.And when they click on upload button it should start uploading of file one by one and after completion of uploading it move that file into another folder one by one.Now my software doing it perfectly but if user copy and paste any file in that predifined folder from network computer during uploading then they have to click upload button again after completion of first queue of files(for example if user first copy 10 files and start uploading and inbetween uploading of that 10 files if user copy another 10 files from network computer then they have to click on upload button again after completion of uploading of first 10 files).But my user requirement is they want to click on upload button once only at the time of starting my application and my application automatically select the file one by one from folder and send it to destination.Means if they copy the file from network machine inbetween uploading or any other user from network send file in that folder then my application should select those file automatically and start uploading means they don't want to click on upload button again.Can any one plz guide how I can slove this problem.Below r my codes:-
    Upload.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    try {
    suspendflag=true;
    Resume.setEnabled(false);
    Suspend.setEnabled(false);
    dest=frame.m_txtURL.getText();
    File ff=new File("d:\\DTMS\\Upload");
    File[] files = ff.listFiles();
    fileList = new Vector();
    if(files == null)
    textArea.append("There is no file");
    return;
    else
    for (int j = 0 ; j< files.length ; j++)
    fileList.add(files[j]);
    java.util.Collections.sort(fileList, new FileComp());//sorting by size
    new Thread(new Runnable() {
    public void run(){
    for (int k = 0; k < fileList.size(); k++)//loop for queue {
    File fname = (File)fileList.get(k);
    String str=fname.getName();
    log("Destination:" +" "+ dest);
    log("Uploading Progress\nPlease Wait....");
    result=doPost(fname,dest);//method for read file & send to servlet
    String str2="Transfer apparently failed.";
    String str3=result;
    if(str2.equals(str3)){
    Error(result);
    else if(suspendflag==true){
    File newfile =new File("d:\\DTMS\\Archives\\"+str);
    fname.renameTo(newfile);
    log("File" +" "+ str+" "+"Upload Completed !");
    else if(suspendflag==false){
    Error("** Transfer Suspended**");
    }).start();
    }catch(Exception exp)
    Error("Error : " + exp.toString());
    Regards
    Bikash

    Hi Chandan,
                        All the multiselection files are stored in it_tab( i:e file_table in method). you need to loop the every record to upload the data for selected files. please check the code Below...
    DATA: file_str1 type string.
    data: it_tab TYPE STANDARD TABLE OF file_table,
           wa_tab TYPE file_table,
           lw_file LIKE LINE OF it_tab,
           gd_subrc TYPE i.
    SELECTION-SCREEN begin of block blk with frame title text-100.
    SELECTION-SCREEN SKIP 2.
    parameters : p_file like rlgrap-filename .
    SELECTION-SCREEN end of block blk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
    EXPORTING
    window_title = 'Select only Text File'
    default_filename = '.azt'
    multiselection = 'X'
    CHANGING
    file_table = it_tab
    rc = gd_subrc.
    *READ TABLE it_tab INTO lw_file INDEX 1.
    *p_file = lw_file-FILENAME.
    Start-of-Selection.
    loop at it_tab INTO wa_tab.
       file_str1 = wa_tab-FILENAME.
    CALL FUNCTION 'GUI_UPLOAD'
       EXPORTING
         filename                      = file_str1
    *    filename                      = '\\10.10.1.92\Volume_1\_projekte\Zeiterfassung-SAP\test.azt'
       tables
         data_tab                      = it_string
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP.

  • Batch handle with 'Auto Select' option

    Hello Everyone!
    We are trying to find out how the 'Auto Select' button works with batch handle.
    Our customer wants to handle batches by FIFO.
    We need to try if it is possible to 'Auto Select' batches by 'Admission Date'. Even when we found out that it is possible SBO does not do it rightly, because not always get well organized by 'Admission Date'.
    Somebody knows which logic uses the 'Auto Select' option to select batches?
    There is some configuration at SBO to handle batches by 'Admission Date'?
    Thanks a lot!

    The batch auto selection selects the batches according to the ascending alphanumeric order. To issue based on FIFO method, user has to identify the admission date/ manufacturing date of the batch and issue.
    There is No configuration at SBO to handle batches by 'Admission Date'.
    As a workaround you can use the batches to startwith  'Admission Date'.

  • How do you turn off the auto select behavior when working with shape layers?

    How do you turn off the auto select behavior when working with shape layers?
    I am using either of the path selection tools to select only some of the paths on the layer. I have the proper layer targeted. I have the selection too auto select option turned off.
    If another layer has a path in that area, that layer becomes auto targeted and I get the wrong path. Turning off the layer is the only way to avoid this but then I have to  turn on the layer back on between making my selection and transforming to use the other layer as guide. Is there any way to stop this auto select? Locking the other layer does not stop the auto select, just prevents editing.

    As far as i know the move tool options don't have any effect on the path selection tools.
    You might try clicking on one of the path points or on the path itself with one of path selection tools and if you want to select multiple points
    you can shift click with the Direct Selection Tool or Alt click to select the entire path.
    more path shortcuts:
    http://help.adobe.com/en_US/photoshop/cs/using/WSDA7A5830-33A2-4fde-AD86-AD9873DF9FB7a.htm l
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7391a.h tml

  • Auto Select not working in Photoshop CS6--Why?

    I'm experiencing the auto-select in Photoshop CS6 not working when it is checked and I click on different layers. It worked fine in 5.5, but I am now using PS CS6 cloud and it works only sporadically. Any reason why?
    Thanks in advance!
    -Jane

    Moving this discussion to photoshop Forum discussion.

  • How to Turn Off the Auto-Select Function When Clicking In a Document?

    Whenever I click my cursor within any document (Mail, Text, this post) sometimes an entire word is selected (highlighted in blue) rather than the cursor just being there blinking & ready for me to type. If I click again the entire line is selected, then the whole paragraph.
    This is VERY frustrating when all I want to do is place my cursor within the document to edit or begin typing. If I'm not careful and click in a document and just start typing, the auto-selected text is deleted. Yikes!
    Only my Mac Mini with the Leopard OS 10.5.8 does this, not my PowerBook w. Tiger OS 10.4.11. Thanks for any advice on this.

    Correct, Sig.
    When I checked the Double-Click speed in prefs, it was set all the way to the left -- SLOW. When I set it half-way to the right, problem was solved. Thanks much.

  • PDF auto select paper tray based on paper size

    * this was originally posted here: http://discussions.apple.com/thread.jspa?threadID=2586377&tstart=0 but I was informed I was in the wron g forum.
    I have a Windows pc only for 1 thing - printing pdfs. My problem is that Windows printer drivers allow me to have auto select paper size/tray depending on if the pdf page is standard or legal. I have not yet found anyway to do this through the mac.
    I have a Brother HD-5370 laser printer and need some assistance with the paper auto select. If any one has any suggestions or an actual fix, I am all eras.
    I have used Snow Leopard, Leopard as well as 10.4 and the problem is with any pdf viewer I have tried (viewer, adobe reader, other 3rd party which names escape me). The option to auto select printing by pdf page size is selected and the drawers are set correctly. It just won't print how it's supposed to.
    any sugegstions,
    Dan

    This has been an issue for at least 3 years now. I have checked for driver sin the past and have tried to look up answers via Brothers website - all to no solution to my problem. It just may be that Brother's printers do not have this feature. The options do show as valid options though.
    The printer is currently connected to a Windows pc located on a different floor. So in order to test, I have to move the printer or the mac.

  • Auto-select clip under playhead? (for color correction)

    Hi all
    Another newbie question concerning color correction in FCS2.
    When moving from clip to clip in the timeline, the viewer (which contains the 3-way color correction filter) doesn't refresh until I remember to double-click on the current clip to select it. In other words, if I change a filter on one clip, then move in the timeline to the next clip, the viewer still contains the previous clip's filter, and if I forget, I'll start fiddling with it, thinking I'm now looking at the current clip.
    Still with me?
    So, my question is, is there an "auto-select" feature whereby, as I move my playhead along the timeline, clips on a selected track (eg V1) will automatically get selected and loaded into the viewer?
    I know there is an auto-select feature for tracks, which I've enabled for my video track, but it doesn't seem to be meant for what I want.
    Thanks!
    Matt

    If you set the SYNC to OPEN, what is being played in the time line (and displayed in the Canvas view) will also be displayed in the Viewer.
    Just a point of clarification - the Viewer doesn't hold the CC filter, it will only display the filters that have already been applied to currently displayed clip. If the next clip displayed in the viewer has not had the 3way CC applied, the 3way CC won't display as part of the filters on that clip.
    Good luck,
    x

  • How do I stop auto select or hovering with my trackpad?

    How do I stop my track pad / mouse from auto select (Hovering)?

    I've been having this problem on my MacBookPro for some time. I live in China.  In January I took it in to the Genius'  in California and they replaced the trackpad.
    I think it's a software problem. I continue to have this problem in Firefox and Safari. I use a VPN and I also check preroidically for viruses. I have a clean computer with no viruses. I don't open spam, links or attachments from anyone I don't know well or recognize. My computer is clean.
    I use the latest versions of OS and update my software when there are new updates. I'm using 10.8.2. Haven't added 10.8.3 yet but will do so as soon as I see that it is stable.
    This problem is quite frustrating. When reading and scrolling down a page of news a new item is selected or text is selected without a click. Sometimes I will be taken to a new page without having clicked anything.
    It's quite a hassle sometimes.
    Apple hasn't helped at all with this.

  • Auto select new item in tree

    Hi
    I have a tree that i allow user to drag and drop items to it - what is the easiest way so the new item is automatically selected? ie, tree.selectedIndex should point to the new item's index.
    Unfortunately it thought this was easy apparently it was not - like if the nodes in the tree control are collapsed, the selectedIndex is different than when all the nodes are expanded.
    Do note that the way i populate my tree is through a data provider - so i populate a class that would become the tree's data provider, so when the tree refreshes, i simply do this:
    myTree.dataProvider = project.p;   
    I can track where my new item was inserted in my "project" instance - but like i said earlier, the tree itself have different selectedIndex when the nodes are collapsed and when they are not.
    THanks

    Hi,
    I just posted a demo and source code on my blog: Auto select New Item in Tree component
    In above example i use loopAndFind() custom function.
    Hope it helps!
    Mariush T.
    Blog: http://mariusht.com/blog/

  • Answering mail: Mail app auto-selects subject

    Hi,
    today i experienced a very strange behaviour in mail app - this happens with every kind of mail (imap, pop, exchange) :
    When I'm answering to any received mail by clicking the "Answer" button/link, the answer mail opened. So far so good. But if try to enter the subject, system auto-selects entered text starting after the second entered character. The count of auto-selected characters depends on my writing velocity. The problem is, that after system auto-selects entered text whilst I'm continuing typing, my text is replaced with the next typed characters. So I'm not able to write any word.
    I know it sounds strange, cause it is strange. First I thought there is someone behind me who did this with a kind of remote control. But after a few investigations i found out, that this behaviour only happens, when I'm answering a received mail or if I clicked on a "mailto:" Link in another mail.
    I' using a brand new 15'' MPB with OS X Maverick with all latest patches (incl. Mail-Patch).
    Is there any new functionallity in mail app which i did not realise???
    Greez

    Hi,
    I found a way to prevent this odd behaviour:
    Deactivate spell check while typing. That's it.
    I do not know, why spell checking behaves like that, but....
    Bye

  • Auto-select field after clicking link inside Appearance panel

    Before Illustrator CC 2014, when I clicked on a link inside the appearance window, the corresponding field would auto select. This made for a more efficient workflow. But now for some reason this has disappeared and I miss it! Hey Illustrator team, can you guys add it back in the next release?
    How to reproduce:
    Click on Opacity in the Appearance panel > "mini" opacity panel opens.
    Opacity field should be selected so all the user has to do is click up or down arrows on their keyboard.
    Just something small I noticed after I upgraded to CC 2014. Not a big deal honestly, but a small regression.

    You might try the steps in this Knowledge Base article;
    http://docs.info.apple.com/article.html?artnum=304482
    Dah•veed

  • How do I disable auto select for the path selection tool?

    For the move tool you can choose to disable auto selection, auto select a group, or auto select a layer. By default though the path selection tool autoselects a layer. How can I disable autoselection?

    I can’t seem to reproduce what you describe.
    Please elaborate, possibly with the help of some screenshots.

  • Can mac auto select pages for print by size

    Hello, does anyone knows if there is a way how to set up on Mac auto selecting for printing pages by size? I need it to print loan documents for my notary public business. Using HP laser dual tray printer.

    Hello Shane,
    I am notary public and I would recieve file with documents that need to be printed on both legal and letter size paper. I used Adobe Acrobat from my husband's Windows computer which sorts the documents by paper size and then print's them out on correct size paper.
    The printer I have is HP Laserjet 400 M401n.
    Thank you for your help

  • Auto Select Available Shipping Options

    After a user enters a zip code they must choose an Available Shipping Options. In my case I am only offering one shipping option and would prefer this to be auto-selected for them to ease the process. I have attempted the following code but it did not work:
         var $radios = $('input:radio');
         $('#shippingPostcode').change(function() {
             $radios.trigger('click');
    How would I auto-select the only option available?
    Thanks!

    Yes drop me a line, I've re-written nearly of this Javascript to auto select based on 1 input. Not done it for Fedex but have done it for the Australia post but the code and UI interface is the same.

Maybe you are looking for

  • [SOLVED] Sound no longer working

    I'm using alsa in gnome3 and wheen I look at the sound tab in gnome3's settings nothing looks awry. Thanks in advance, xrendan Last edited by xrendan (2011-08-08 05:28:24)

  • TV Shows/Movies Won't Play in Vista

    I have bought numerous episodes of South Park and Family guy on iTunes, but none of them will play in Vista. I have done some looking around and found this is a common problem. What's the issue? I have spent a ton of money on these episodes and they

  • 10.4 running OS 9 or Classic

    New to Mac and have G-5 and want to run my Canon digital camera and printer and scanner that all require OS9 or Classic. Don't know what to do.

  • No automatic Day/Night color switch

    It used to work in old map version but the new 3.03 does not have the option to automatically switch between day and night colors of map. 5800XM has the light sensor and still there is no option, why this is removed from new software. My TomTom has a

  • Overlay problem

    The overlays that I created are not matching up with the menu that I created closely enough. Here is my process I created a menu in Motion. Then deactived all of the elements that are not going to be buttons, leaving me with a black back ground and a