Results 1 to 8 of 8

Thread: form assists in spring-rcp

  1. #1
    Join Date
    Aug 2004
    Posts
    203

    Default form assists in spring-rcp

    Hello,
    Is it possible set assists for any form field :
    for instance, I have list of customers and user go to customer field in order form
    (text, combo etc) for customer code.
    when user type any key (for instance ctrl space) then get popup window with list of customers like code assists in eclipse or any IDE

    regards

  2. #2
    Join Date
    Sep 2004
    Location
    Ghent, Belgium
    Posts
    224

    Default

    I think you'll have to register a FormComponentInterceptorFactory that creates FormComponentInterceptor's that add listeners to the JTextField to show the content assistant.

    Hope this helps,

    Peter

  3. #3
    Join Date
    Aug 2004
    Posts
    203

    Default

    cool.How I can do it ?

    Thanks

  4. #4
    Join Date
    Sep 2004
    Location
    Ghent, Belgium
    Posts
    224

    Default

    Take a look at the classes in the org.springframework.richclient.text of the sandbox area, they create all the stuff that's needed to have a popupmenu in standard text fields.

    You'll have to register your factory in the richclient-application-context.xml file.

    I have the code to create a content assistant somewhere, I'll see if I can find it.

    Good luck...

    Greetz,

    Peter

  5. #5
    Join Date
    Aug 2004
    Posts
    203

    Default

    It isn't popup menu - it is windows with lists string, but it have to change on key typing
    for instance, if user type character S then list have all customer with starting s etc

    I see popupmenu, but it isn't what I want

    This is standarda request for rich application - for petclinic exapmle - waht when exist 10000 owners or 30000 vets - tree is unusable

    thanks

  6. #6
    Join Date
    Sep 2004
    Location
    Ghent, Belgium
    Posts
    224

    Default

    I didn't mean that you can use the popupmenu for "content assist" functionality, but that you could implement "content assist" behaviour using your own FormComponentInterceptor.

  7. #7
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    335

  8. #8
    Join Date
    Sep 2004
    Location
    Ghent, Belgium
    Posts
    224

    Default

    I guess I was a little bit tired this weekend. Let's try again:

    Yep, that was also the page I was looking at.

    I think you could create a FormComponentInterceptor (and factory) to add this functionality to JComboBoxes.

    Hope I made myself a little clearer,

    Peter

Similar Threads

  1. Replies: 3
    Last Post: Jun 8th, 2010, 03:27 AM
  2. Replies: 5
    Last Post: Aug 9th, 2008, 05:30 AM
  3. Gaijin Studio for Spring MVC 0.9.2 Released
    By dadams in forum Announcements
    Replies: 8
    Last Post: May 30th, 2007, 10:48 PM
  4. Replies: 6
    Last Post: Sep 24th, 2006, 11:58 AM
  5. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •