Hi All
We have the following requirement: Some times we d'like to know, which GUI-Widget hast the focus.
Solution A:
We could register a focus listener on all Widgets. Everytime the focus changes we get an event and store the current focus owner.
Unfortunately this causes to much network traffic and a very high server load, even if we send the focus change event asynchronously.
Solution B:
We track the current focus owner by registering a property listener at the java.awt.KeyboardFocusManager. This way we get an event for every focus change on the client side. The problem here is that we don't know how to find the apropriate server side half-object from the client side object. Is there a way to lookup an id or something like that for the reference we get in the PropertyListener of the KeyboardFocusManager? My guess is that once we have this id we can pass it to the server (by writing a litle extension) and find the appropriate server side half-object.
I added a Snippet to ilustrate the client side of Solution B.
TIA for all answers.
Ernst Plüss
Bedag Informatik AG
Abteilung GF GBA
Gutenbergstrasse 1
3012 Bern
Telefon: +41 (0)31 633 21 21 (direkt 633 25 89)
E-Mail: mailto:[EMAIL PROTECTED]
www.bedag.ch
<<ClientReferenceSnippet.java>>
ClientReferenceSnippet.java
Description: ClientReferenceSnippet.java
