Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

event sequence

ps prasad
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirement to open another window as soon as the user closes the current window.
We are using a framework and extending a framework class(Abstract Frane) to create new frames. The abstract frame adds defautl internal frame listerner to the created window. And also there is a toolbar in desktop pane.
As per my requirement, i have added a new internal frame listener and has code to invoke a new screen in the internal frame closed event.Now there two internal frame listeners 1) Added by frame work 2) Explicitly added by me.
When the window is closed, the code that i wrote in internalframeclosed event is getting executed and the next scteen is invoked, Now the problem is here. Next, the listener added by framework fires and it has code to disable the tool bar . so the tool bar is getting disabled. But actually the bar always point to current frame. so, it's setting should confrom to newly opened frame. As the infterframe closed event is firing after the new window is created, tool bar is becoming non funtional. As per my knowledge there is noway impose sequence on the events. I have some functionality in the listerner added by framework and as far as possible don't want it to be removed.
Is there any way to control this.
[ March 03, 2005: Message edited by: ps prasad ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic