Captive Imagination
September 06, 2010, 08:39:57 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Check out the teaser site for the first official game by Captive Imagination: http://www.galaxiesbeyond.com
 
   Home   Help Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Access to EventHandler list/queue in the Component  (Read 686 times)
0 Members and 1 Guest are viewing this topic.
syam
Full Member
***
Offline Offline

Posts: 139


View Profile
« on: May 22, 2008, 11:50:44 AM »

I was under the impression that removeEventListener and clearEventListeners are enough. Now, I came across some situation where I want to remove some specific type of handlers from that list. Currently, no iterator method is available for handlers/listeners.
Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #1 on: May 22, 2008, 12:14:56 PM »

I can imagine circumstances where that would be useful. I've added two methods to Component:

Code:
public Iterator<EventHandler> eventHandlerIterator()

and:

Code:
public Iterator<ValidatorHandler> validatorHandlerIterator()

The first solves your problem, but for consistency I added one for Validators as well.  Can you create and close an enhancement on RC 1 for this so it gets tracked?
Logged
syam
Full Member
***
Offline Offline

Posts: 139


View Profile
« Reply #2 on: May 22, 2008, 12:17:34 PM »

Thanks for that. In fact, I just logged in to suggest the second one and you have already done it Smiley
Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #3 on: May 22, 2008, 01:06:14 PM »

I may just be one person, but I'm dedicated to making jSeamless awesome.  Tongue

...that is not to say I don't need help though, because I do. Smiley
Logged
syam
Full Member
***
Offline Offline

Posts: 139


View Profile
« Reply #4 on: May 22, 2008, 01:26:16 PM »

I can already sense that you are an incredible person Smiley

I am trying to use jSeamless for a serious project. You may not be getting development help from me now, but, definitely I am testing the whole framework or at least the parts/components that I am going to use.

I have created a case (#243) and closed it as fixed.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.247 seconds with 20 queries.