JavaFX 1.2, ListView, is it possible to have an event when an item is sel?

I have a listview, in it contains a lot of text in the format of "abcd -> efgh". When the user selects any item in the ListView, I need two textboxes to populate, one with "abcd" and the other with "efgh". Any thoughts?
I'm using NetBeans6.8 and JavaFX 1.2. Moving to 1.3 is not an option, so let me know if this can be done :)
Thanks!
Andy

Now I guess I'm still confused on one thing. Where should this code go exactly? I wrote the following:
        //Bind the selected index of the Component Catalog in order to populate the textboxes
        var compCatalogSelectedIndex = bind compCatalogListView.selectedItem on replace {
            def myItem = compCatalogSelectedIndex as String;
            var separator = "->";
            var mapping:String[] = myItem.split(separator);
            //Set component side
            componentTextBox.text = mapping[0];
            //Set catalog side
            catalogTextBox.text = mapping[1];
        }I threw a breakpoint in there and it's not reaching it when I change the index.

Similar Messages

  • Is it possible to fire an event when radio buttons are clicked in a report?

    Hi All,
    I have got a requirement. In the selection screen i have certain input fields and three radio buttons. When radio buttons are clicked i have to grey out certain input fields. Is it possible to fire an event when i write program through se38??
    Thanks
    Rakesh

    Hi Rakesh,
    Check this code.
    SELECTION-SCREEN BEGIN OF BLOCK FINPUT WITH FRAME TITLE TEXT-001.
    PARAMETERS  : FILENAME(132) TYPE C LOWER CASE  NO-DISPLAY,
                  FDLOAD RADIOBUTTON GROUP RAD1
                  USER-COMMAND R1 ,
                  FUPLOAD RADIOBUTTON GROUP RAD1 .
    SELECTION-SCREEN END OF BLOCK FINPUT.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-002.
    PARAMETERS : FUNAME(132) TYPE C LOWER CASE MODIF ID AA.
    SELECTION-SCREEN PUSHBUTTON /33(30) ACTION USER-COMMAND
                     BTNACT MODIF ID AA VISIBLE LENGTH 8 .
    SELECTION-SCREEN PUSHBUTTON 43(30) CANCEL USER-COMMAND
                     BTNCAN MODIF ID AA VISIBLE LENGTH 8  .
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETERS : FDNAME(132) TYPE C LOWER CASE MODIF ID BB.
    SELECTION-SCREEN PUSHBUTTON /33(30) ACTIONS USER-COMMAND
                     BTNACT1 MODIF ID BB VISIBLE LENGTH 8.
    SELECTION-SCREEN PUSHBUTTON 43(30) CANCELS USER-COMMAND
                     BTNCAN1 MODIF ID BB VISIBLE LENGTH 8.
    SELECTION-SCREEN END OF BLOCK B2.
    DATA : ACTNAME(8) TYPE C,SCRGRUP(2) TYPE C.
    INITIALIZATION.
    ACTIONS = 'Download'.
    CANCEL = 'Cancel'.
    ACTION = 'Upload'.
    CANCELS = 'Cancel'.
    ACTNAME = 'Download'.
    SCRGRUP = 'AA'.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF FUPLOAD = 'X'.
         MOVE 'Upload' TO ACTION.
         MOVE 'Upload' TO ACTNAME.
    ELSEIF FDLOAD = 'X'.
         MOVE 'Download' TO ACTION.
         MOVE 'Download' TO ACTNAME.
    ENDIF.
    AT SELECTION-SCREEN.
    IF SY-UCOMM = 'R1'.
        IF ACTION = 'Download'.
          SCRGRUP = 'AA'.
         MESSAGE S007(ZMESSAGE).
        ELSEIF ACTION = 'Upload'.
          SCRGRUP = 'BB'.
         MESSAGE S008(ZMESSAGE).
       ENDIF.
    ELSEIF SY-UCOMM = 'BTNCAN' OR SY-UCOMM = 'BTNCAN1'.
      LEAVE PROGRAM.
    ENDIF.
    *AT USER-COMMAND.
    CASE SY-UCOMM.
       WHEN 'ACTIONS'.
         LOOP AT SCREEN.
           IF SCREEN-NAME = 'FUNAME'.
           ENDIF.
         ENDLOOP.
    ENDCASE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR FUNAME.
      PERFORM call_filedialog CHANGING FUNAME.
    PERFORM call_filedialog CHANGING FUNAME.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = SCRGRUP AND ACTNAME = 'Download' .
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = SCRGRUP AND ACTNAME = 'Upload'.
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    FORM call_filedialog CHANGING fname.
      DATA: li_filetable TYPE STANDARD TABLE OF file_table,
        lv_return TYPE i,
        lw_filetable TYPE file_table.
      CALL FUNCTION 'TMP_GUI_FILE_OPEN_DIALOG'
        TABLES
          file_table = li_filetable
        EXCEPTIONS
          cntl_error = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      READ TABLE li_filetable INDEX 1 INTO lw_filetable.
      fname = lw_filetable-filename.
    ENDFORM.                    "call_filedialog
    Reward Points, if useful.
    Regards,
    Manoj Kumar

  • Is it possible to trigger an event when clicking context menu trigger icon?

    When opening a context menu on a UI element, is it possible to trigger an event to handle, eg. set the lead selection for this context element to which the UI element is bound, when clicking the menu trigger icon ?

    First, these NW04s menus are not really context menus. They are static menus that are rendered within the view layout. Real context menus will come later.
    There is no "onMenuOpen" event for an application.
    Armin

  • Is it possible to have an event within an event?

    I have an event named for my niece, and I have all the pictures of her in it. I'm wondering if it's possible to have events within events, so I can just have 1 event with her name, then when you click on it, sub-events named things like "Christmas" "Thanksgiving" etc.?

    no - events are time based and can not be nested - use albums and smart albums which can be placed in folders and folders can be placed in folders for that kind of organization - Europe folder containing France and Italy folders each containing cities as an example
    Events are just a very basic and inflexible organization for people to start with - albums, folders, keywords and ratings are where the power is
    LN

  • Possible to have node open when Repository starts?

    Good morning everyone.
    Is there a possibility to have the STANDARD Node open when I start my Repository? I have a workarea and a folder in which are all my forms-files. So everytime I start the Repository I want to have open this Tree-Node.
    Do you know how?
    Thanks in advanced

    We feel your pain. How about making the topic that links to the movie the default topic of your help file. That way they'd get to see it every time they open the help. Failing that, try a sledgehammer over their cranium
    Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
    Follow the RoboColum(n) on Twitter

  • Is it possible to have only one line per item in InfoView document list?

    Hi,
    my customer is complaining about InfoView (Document list) wasting too much screen estate. For each list item (report, folder etc.) InfoView displays two lines, one for the name and one for the description. Is it possible to configure InfoView to display one line only, leaving out the description?
    Regards
    Joern

    Hi Joern,
    You can set the user preferences  to not display the description in the section: Document List Display
    Regards,
    Julian

  • Is it possible to have undefined attributes for an item type...see more in the messag

    I want to create an item called 'book' with attributes like title, date of publish, language, pages....and author, but i want that users can assign many authors (as much as users want)....is this possible?? How can I realize it??? Could I create author like a item type too?
    Thanks for all

    You can have any number of multi table mappings in an item descriptor.
    Take a look at the following example
    http://docs.oracle.com/cd/E23507_01/Platform.20073/RepositoryGuide/html/s1204repositoryexampleconetomanywitha01.html
    You can also open any repository in dyn/admin say userProfile.xml in ProfileAdaptorRepository and see the existing one to many (multi table) mappings.
    It just depends on how many multi properties you have in your requirements, create as many multi table relationships.
    ~Gurvinder

  • Possible bug - Missing click event when handling change event

    Using Flex 4.5 SDK, I have a spark ComboBox and a Button next to it for applying a filter according to ComboBox selection.
    I listen to both the ComboBox's change event & the Button's click event (for different functions).
    When I manually delete the ComboBox text value from its TextInput (i.e. changing selected index to -1) and immediately click on the Button,
    the click event-handler function is not being called and only the ComboBox's change event-handler function is executed.
    (Selecting a value from the ComboBox's list and clicking on the button triggers both methods on the right order.)
    There's also a state definition for the module, but it isn't being changed during these operations...
    Is this a bug or a correct behavior? Am I missing something here?
    Any workaround suggestions?
    (I thought of listening also to mouse-down or mouse-up on the button instead, but haven't tried it yet...)
    *** UPDATE ***
    When using the Button's mouseDown event the behavior is as expected, so there's a simple workaround.
    However, it seems to me like there's a bug with the Button's click event listener or something...
    *** UPDATE #2 ***
    I created a test application for that and couldn't reproduce the problem.
    Then I figured out the problem and solved it.
    It's a bit emmbarrasing, but I actually disabled the button (enabled=false) as in a child method of the change handling code...
    (If there is no value, don't allow applying the filter - It makes sense! )
    Anyway... No issue after all.
    However, I choose to leave this post (and not delete it) as an example of identifying and resolving a strange behavior in a complex application.

    There's no need.
    Please read the section UPDATE #2.

  • Is it possible to have an event (or callback) associated to the mousse click (as On Click Series)?.

    I want to select a serie or a point in my graphe Labview using click or double click

    > I want to select a serie or a point in my graphe Labview using click
    > or double click
    LabVIEW 6.1 introduces UI events. It will allow you to catch mouse
    events for the graph, and with some work, much of which is already in
    the picture control VIs, you can select a graphed point, plot, etc.
    Greg McKaskle

  • Is it possible to create one event in Ical, but put it into two Google calendar accounts?

    In my Ical i have multiple google calendars, from multiple accounts. I've got one calendar for my girlfriend (a Home account), so she can see my schedule and where i am. That brings a minor problem. In my Ical i have the same event now multiple times (one for my "home" account and one for my other account). So a lot of duplicate events. Is it possible to have one event, but put it into multipleaccounts? Anyone some tips or tricks?

    wayne,
    Sales order has one credit control area, check VBAK-KKBER
    Therefore order should be checked against this CCA.
    TW

  • Is it possible to have sub-folder events inside an event on iPhoto?

    Is it at all possible to have an Event (eg. Pets) then have sub-events inside that event (eg. Dog, Cat etc.) in iPhoto?
    I can't seem to find anything...
    Any help greatly appreciated.

    No it's not.
    Basically, Events are organisation for those who can't be bothered. SImple date and time grouping of photos.
    If you want more, now it's time to explore Albums and Folders.
    So, a Folder called 'Animals' and within it, two Albums, one for 'Dog' and one for 'Cat'
    Albums are much more flexible than events, you can arrange the photos within albums with much more flexibility. A photo can be in multiple albums using no extra disk space, whereas to have a photo in multiple Events requires a duplicate file and so on.
    FWIW here's a canned answer I use to illustrate some of the organisation possibilities of iPhoto...
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 50k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.

  • JavaFX 1.3 ListView - control scrollbar

    hi any1,
    Was looking at the api doc of the new javafx 1.3 listview, i like the new cell attribute. However i couldn't find how to control the scrollbar in the listView.
    Reason is trying to use the listView to behave like a message logger to display the latest incoming messages to the user, in my business apps. As such, would need to always move the scrollbar to the latest message.
    Is there a way to do this in listView?
    Many thanks.

    For the record, I recently asked exactly the same question: [How to control ListView display position?|http://forums.sun.com/thread.jspa?threadID=5436800].
    So I am not the only one with this need and failing to see a solution...

  • Possible to Have ToC Default to Show Only Top Level (collapse sublevels)?

    Howdy!
    I'll bet I'm not the only one wishing for this.  Let's say you're using Captivate 4's Table of Contents feature with a longish movie of Cp slides, which is chunked into bite-size sections content-wise.  In the ToC, though, you can't mimic that same organization scheme; at least, the learner would first need to collapse all the ToC folders you've created so they see only the top-level listing.
    This can be a critical issue:  keeping the at-first-glance list in the ToC brief enough to be inviting to learners, yet allowing learners to drive which details are currently visible.
    A movie's topical hierarchy could be along these lines, for example ...
    Section 1 - National Brands
    What are National Brands?
    Why Are They Important to Our Business?
    Working with Nat. Brands
    Practice Your Knowledge
    Section 2 - International Brands
    What are International Brands?
    Why Are They Important to Our Business?
    Working with Intl. Brands
    Practice Your Knowledge
    You'd like to organize the ToC to show only the section titles (1st level) and to suppress the 2nd-level detail (slide titles) until the learner chooses to expand the folder to see those details.
    I've tried things like grouping the slides into sections in the Storyboard view and organizing the slides into sections strictly within the ToC -- both to no avail.
    Has anyone solved for this need yet?
    I'm all ears, and you'd be doing learners of the world a huge favor.
    Thanks!

    Hi, Jim.
    Thanks for being 'on the case' and looking into this so quickly.  Your
    findings are encouraging, although my user base is generally working with
    IE 6 and FP8 or 9.
    Since the only thing I may influence is getting  IT to help push out FP10,
    I'm hoping it's more of a player- than a browser-version issue.
    I'll test things out by Monday and let you know the results.  Wish me luck!
    Dave
                                                                                    From:       Jim Leichliter <[email protected]>                                                                               
    To:         Dave Tressler <[email protected]>                                                                               
    Date:       03/26/2010 06:02 PM                                                                               
    Subject:    Possible to Have ToC Default to Show Only Top Level (collapse
                  sublevels)?                                                                                
    Dave,
    I just tested this on my local web server and it worked fine.  I created a
    blank project with 8 slides.  Created my TOC with grouping... 2 slides in
    each group.  I turned on self paced learning.  I tried with and without the
    widget and it picked up where I left off in either case.  See
    https://docs.google.com/leaf?id=0B86WuEq6SVwRNWIwMjhjODctMjE2Yy00MWE2LWI5YzEtMGQxYzNjOWQ0Z mI2&hl=en. 
    I published using FP10 and IE8 to view.  Notice any difference between
    your project and this one?
    Thanks,
    Jim Leichliter

  • Is it possible to have an attachment within a pdf doc print at the same time the main doc prints?

    Okay, so this may be kind of a weird question.  We have some users who are wanting to add a page to an already existing xml document and correct me if I'm wrong, but I've read that it's not possible to add/delete pages from a pdf that's in xml format.  Since that is not possible, I have added the page to the xml document as an attachment.  Now what I am wanting to know is if it is possible to have the attachment print out at the same time as the main document.  We are using the latest version of Adobe Reader and I have access to Adobe Acrobat Standard 9 & 10 and then I have access to Adobe Acrobat Pro 7.  I've been unable to find anyting via google or by searching this forum so hopefully I'll draw out some kind of smart cookies and we'll get this figured out.  I appreciate any and all input!
    Thanks,

    I know of no way to do this with Reader or XML.

  • HT1399 Why cant I create a playlist for my music/song videos? Continuous play is also not possible in the video app on the phone!!!! previously, prior to IOS 6, it was possible to have both music videos & songs mixed in the same playlist in the music app

    Why cant I create a playlist for my music/song videos? Continuous play is also not possible in the video app on the phone!!!! previously, prior to IOS 6, it was possible to have both music videos & songs mixed in the same playlist in the music app

    I am back with an update. I turned off Match on both the ipad and the iphone 5. By doing so I was able to sync my Iphone and ipad to itunes and store the music on my devices rather than the slow streaming.  So far this has fixed my problems with the iphone I have all my music, playlist, most of the album art and so on.  But the ipad is a different story.  I have the music and artist but not one playlist  I am sure Apple will have an upgrade soon that will address these issues they are usually very good about this. 
    Now have any of you experienced another problem that has existed as long as I have used faces in Aperture.
    I have over 200 faces and they are organized a-z problem is I have this going on A-Z folowed by a few that start over A-Z followed by another few A-Z and again a 4th time A-Z.  Imagine how difficult it is while I am showing someone the great features of my iphone, ipad and imac.  Which I do talk highly of all the time.  But how do I explain that even though their name starts with a or b or what ever they are not important enough to me to be in the first list of A-Z or even the 2nd or 3rd list of A-Z someohow they are in the 4th section of the list!!!!
    I have managed to get the Imac to fix this but for some reason the IOS devices do not.   Any ideas?
    Thanks Al

Maybe you are looking for

  • Loss of sound on Pavilion g6

    I have kost sound on my HP Pavlilon g6 through the speakers, however sound is still working when earphones are installed to the laptop. Does anyone have any solutions to this problem? Thanks Matt

  • Using Jdev to scan files to a document management system

    hello all, i am working on jdev 10.1.3.3., and i was asked by my manager, to find a way on jdev, to create a small application which allows us to use a scanner, to acquire physical documents and scan them into Tif files and import them to a document

  • Sum and Average Group Wage instead of Details Wage

    I have a subreport where I have included all of our employment records and grouped it by employee ID. In the Group Footer, to show the latest employment record I used the Max(Start Date) and I have also placed the Hourly Wage field here which shows t

  • ICal cache is corrupted

    I'm getting the following errors from iCal: 9/7/12 10:37:13.629 AM iCal: CoreData: error: (11) Fatal error.  The database at /Users/lisamaco/Library/Calendars/Calendar Cache is corrupted.  SQLite error code:11, 'database disk image is malformed' 9/7/

  • If I purchase the Photography package, am I able to upgrade to a larger package later?

    I'm wondering if I buy a smaller package now, can I upgrade in a few months if I need to, or will I need to buy an entire new package on top of the photography package that I've already purchased?