You Are Here:

Community: Developer Discussion Boards

#1 Old high-level events VS. low-level events - 2003-05-14, 13:23

Join Date: Apr 2003
Posts: 184
zivgr
Offline
Regular Contributor
Hi,
Does someone know what's the difference between high-level events and low-level events?

Thanks in advance.
Reply With Quote

#2 Old 2003-05-14, 13:59

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
High level events have a higher level of abstraction. They are specifically the Command-related and the Item-related events. You don't know exactly what key(or keys) on the phone the user pressed, you just know he has selected one of your Commands or edited a TextField or whatever....
Low level events are closer to the hardware: a key was pressed, the screen is being repainted, etc...

shmoove
Reply With Quote

#3 Old 2003-05-14, 14:11

Join Date: Apr 2003
Posts: 184
zivgr
Offline
Regular Contributor
Many thanks for the answer.
I saw that the interface "CommandListener" is used to receive the high-level events. Which interface is used to receive low-level events?
Thanks.
Reply With Quote

#4 Old 2003-05-14, 17:13

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
For low level events there is no interface needed, because the there is only one Displayable that can process these events: the Canvas.
So, for low-level events you just have to override the paint(), keyPressed(), keyReleased() and keyRepeated() when you subclass Canvas (these methods have an empty implementation in the original Canvas class).

shmoove

[edit]
I forgot to mention there are also pointerPressed(), pointerDragged(), and pointerReleased() methods, that can also process low level events. You can use hasPointerEvents() and hasPointerMotionEvents() to find out if a device supports this type of input...
[/edit]
Last edited by shmoove : 2003-05-14 at 17:16.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia