This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes GWT and the fly likes Firing an Event when a Panel in a GWT DeckPanel is displayed. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Firing an Event when a Panel in a GWT DeckPanel is displayed." Watch "Firing an Event when a Panel in a GWT DeckPanel is displayed." New topic
Author

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

Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Firing an Event when a Panel in a GWT DeckPanel is displayed.
 
Similar Threads
Loading and unloading a panel
SmartGWT & The CardLayout from GWT-Ext - Any Substitute or Equivalent for Migration?
Tab Movement between Deckpanel and ButtonPanel .
JSF vs GWT
Show default text in PasswordTextBox.