pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger L. Whitcomb" <Roger.Whitc...@actian.com>
Subject RE: What is an example of the use of Application.UnprocessedKeyHandler in Apache Pivot?
Date Wed, 17 Jul 2013 22:52:49 GMT
So, according to the Javadoc for the Application. UnprocessedKeyHandler


Optional interface that allows an application to handle unprocessed

key events (keystrokes that are processed when no component has the

input focus).


This would be the case (for instance), if you have an empty window, or a
form that has all its fields disabled.  The kind of things you would
probably want to handle in here would be a keystroke to exit the
application, or to invoke Help, or an About box.  Or maybe a "Connect"
function - something that the user would want to do when nothing else
was available.


The code in ApplicationContext that handles key events will drop into
looking for an "Application" object that implements this interface when
nothing else claims the keystroke.



~Roger Whitcomb


From: Erik Innocent [mailto:einnocent@gmail.com] 
Sent: Wednesday, July 17, 2013 3:22 PM
To: user@pivot.apache.org
Subject: What is an example of the use of
Application.UnprocessedKeyHandler in Apache Pivot?


What is an example of the use of `Application.UnprocessedKeyHandler` in
Apache Pivot? I've checked Google and the Pivot docs and see no
examples, and the Javadoc isn't enlightening. There's a tease of sample
code in the mailing list archives at:




But the code attachment is not available. Note that I asked this
question yesterday at:




Feel free to answer it there if you want to get the points for it =)
Otherwise I'll post the answer there and cite the source here.



--Erik Innocent


View raw message