This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Firing an Event when a Panel in a GWT DeckPanel is displayed.  RSS feed

 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a panel which is the last panel to be showed in a DeckPanel.

When the final panel is displayed, I want the view to be generated. However, the view is instead generated when the constructor of the panel is invoked, which is when the DeckPanel is initialized when the program starts.

Is there some easy way that I can have a Panel invoke a method each time it is displayed. I looked at the onLoad method of a GWT Panel, but that is only called when the Panel is first created, not each time it is displayed.

So, is there some way to attach an event to a Google Web Toolkit Panel that fires each time that Panel is displayed?

-Cameron McKenzie
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!