The Artima Developer Community
Sponsored Link

Java Answers Forum
Lazy Events

1 reply on 1 page. Most recent reply: Nov 19, 2003 11:04 PM by Senthoorkumaran Punniamoorthy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
rochana

Posts: 3
Nickname: ra
Registered: Nov, 2003

Lazy Events Posted: Nov 18, 2003 8:47 PM
Reply to this message Reply
Advertisement
In places such as the JTree when firing events I have noticed events being "lazily" created and passed into the relevant event method. What does this mean and why are events handled this way?
I really appreciate any explanations as well as articles on this if any...
Thank you


Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: Lazy Events Posted: Nov 19, 2003 11:04 PM
Reply to this message Reply
I know Jack about Java GUI. But I think this might be related to. (Something I copied off the web)

Lazy Initialization
-------------------

Delay the creation of an object or other expensive action needed to initialize a variable until it is known that the variable will be used.
Related patterns are

Maximize Privacy
The Maximize Privacy pattern provides a justification for making a lazily initialized variable private.

Virtual Proxy
Like the Lazy Initialization pattern, the Virtual Proxy pattern can be used to delay a computation or the creation of an object until it is actually needed. The difference is that the Virtual Proxy pattern uses a proxy object to hide the computation; the Lazy Initialization pattern uses a method to hide the computation.

Flat View: This topic has 1 reply on 1 page
Topic: JTable Column DnD problem Previous Topic   Next Topic Topic: A Winlnet.dll error

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use