wor000 / alternate-java-bridge-library

Automatically exported from code.google.com/p/alternate-java-bridge-library
Apache License 2.0
0 stars 0 forks source link

DateSelector and TimeSelector fire dispatchevent TWICE #176

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a new project and add a timeselector component and dateselector 
component
2. set up form for proper dispatching of events
3. choose a date OR time, and watch as the dispatch event gets run twice and 
hits the method twice

What is the expected output? What do you see instead?
It should only be running dispatchevent ONCE, not TWICE

What version of the product are you using? On what operating system?
latest jar, win 7x64

Please provide any additional information below.

Original issue reported on code.google.com by bric...@gmail.com on 8 Jun 2013 at 4:44

GoogleCodeExporter commented 8 years ago
This can happen if you use a BaseForm, and register the event in there, then 
register the event in a Form which extends that BaseForm. The event system will 
fire off an event for each time it is registered.

There's nothing in those classes which would make it spawn the event twice.

Original comment by IMPINC...@gmail.com on 10 Jun 2013 at 6:53

GoogleCodeExporter commented 8 years ago
I agree that that is what would happen, and also that there is nothing obvious 
in the class that would cause this.  I spent many hours debugging this.  But it 
doesn't negate the fact that it is happening.

Simply create a new project (NO BASEFORM), and create a date picker,

DateSelector date = new DateSelector(this);

set up your events, and do it.  It is firing twice, i just re-tested again.

Original comment by bric...@gmail.com on 10 Jun 2013 at 7:06

GoogleCodeExporter commented 8 years ago

Original comment by bric...@gmail.com on 12 Jul 2013 at 8:56