• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Mouse Motion Listener

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mouse Motion listener can be registered with list instance? True/false?
Books says true.
explanation given: Mouse motion listener can be registered with all objects that
are instances of "container". Is list a container?
Or did the author actually mean component?
If the author did mean component..can mouse motion listener be registered with a
ll the components or are there any exceptions?
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rex,
Yes the author meant Component. According to the API:


This low-level event is generated by a component object for:
Mouse Events
a mouse button is pressed
a mouse button is released
a mouse button is clicked (pressed and released)
the mouse cursor enters a component
the mouse cursor exits a component
Mouse Motion Events
the mouse is moved
the mouse is dragged


There are no exceptions to the components that can be registered. In some cases though, the component itself might not pass the event through in all cases or at all. If a component is developed using enableEvents, the mouse motion event could be consumed by the component (not passed to listeners).
Regards,
Manfred.
 
Evildoers! Eat my justice! And this tiny ad's justice too!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic