I don't know if this helps, but there is a SourcesChangeEvents class you need to inherit in your entry module and then you can react on the calls coming from different panels.
I raised once a question in the forum. It's a different subject, but it might help. http://www.gwt-ext.com/forum/viewtopic.php?f=9&t=2431 Or you can have a look at this example to see how the ChangeListener works: import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.ChangeListener; import com.google.gwt.user.client.ui.Image; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.Widget; public class Index implements EntryPoint, ChangeListener { private RootPanel mainWidget = RootPanel.get( "mainPanel" ); private Login loginPanel = new Login(); private AppGrid appPanel = new AppGrid(); private EditGrid editPanel = new EditGrid(); public Index() { } public void onModuleLoad() { loginPanel.addChangeListener( this ); appPanel.addChangeListener( this ); editPanel.addChangeListener( this ); appPanel.setVisible( true ); loginPanel.setVisible( false); mainWidget.add( loginPanel, 200, 200 ); } public void onChange( Widget sender ) { if( sender instanceof Login ) { if( loginPanel.isValidUser() == true ) { mainWidget.remove( loginPanel ); mainWidget.add( appPanel ); appPanel.setVisible( true ); } } else if( sender instanceof AppGrid ) { editPanel.init( appPanel.getCNCTSId() ); } else if( sender instanceof EditGrid ) { if( editPanel.getReload() ) { appPanel.updateStore(); } } } } Dariusz On Thu, Nov 6, 2008 at 4:04 AM, Arji <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > Is there a listener for a Layout Window if you loose focus, or if you > click the parent Panel that calls the Window.show? > > If the mouse clicks outside the window, I want it to be hidden > (window.hide). Is there a way? Thanks so much. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/gwt-ext?hl=en -~----------~----~----~----~------~----~------~--~---
