Ext


Go Back   Ext JS Forums > Ext GWT Premium Forums > Gxt: Premium Help

Reply
 
Thread Tools
  #1  
Old 06-10-2009, 04:43 AM
takayser's Avatar
takayser takayser is offline
Ext GWT Premium Member
 
Join Date: Oct 2008
Location: Lucerne, Switzerland
Posts: 99
takayser is on a distinguished road
Default Window CloseAction

Since your last commit, windows can not be closed anymore, just hidden. Why?
Reply With Quote
  #2  
Old 06-10-2009, 07:32 AM
sven sven is offline
Ext GWT - Development Team
 
Join Date: Sep 2007
Location: Germany
Posts: 4,257
sven is on a distinguished road
Default

Close was just a method to release memory if yuo dont want to reuse the window anymore. Now everything gets handled by hide. Windows act now same as any other components.
Reply With Quote
  #3  
Old 06-10-2009, 07:45 AM
takayser's Avatar
takayser takayser is offline
Ext GWT Premium Member
 
Join Date: Oct 2008
Location: Lucerne, Switzerland
Posts: 99
takayser is on a distinguished road
Default

hmm... what happens if a user works with desktop and open/hide while working more and more windows, will the memory increase with every window if I dont reuse the old hidden ones?
Reply With Quote
  #4  
Old 06-10-2009, 07:50 AM
sven sven is offline
Ext GWT - Development Team
 
Join Date: Sep 2007
Location: Germany
Posts: 4,257
sven is on a distinguished road
Default

Desktop had CloseACtion set to hide

Also when hiding it it gets detached. But you are still holding a reference to it due to the desktop environtment. It is not different than before.
Reply With Quote
  #5  
Old 06-10-2009, 10:53 AM
fredrikhultin fredrikhultin is offline
Ext GWT Premium Member
 
Join Date: Mar 2007
Location: Sweden
Posts: 41
fredrikhultin is on a distinguished road
Default

This crashes things for me though since i relied on setting the Closeaction to close and not to hide. By doing this i created a new window each time and (hopefully) released the old one.

This new behaviour forces med to manually recreate the windows.

Is there any replacement for the Closeaction close functionality?

/fredrik
Reply With Quote
  #6  
Old 06-10-2009, 10:55 AM
sven sven is offline
Ext GWT - Development Team
 
Join Date: Sep 2007
Location: Germany
Posts: 4,257
sven is on a distinguished road
Default

You can simple hide and and create a new one. All memory will get released. It is nothing else than window close before, only that you can now always reuse it and dont have to care about close/hide
Reply With Quote
  #7  
Old 06-10-2009, 10:56 AM
sven sven is offline
Ext GWT - Development Team
 
Join Date: Sep 2007
Location: Germany
Posts: 4,257
sven is on a distinguished road
Default

This crashes things for me though since i relied on setting the Closeaction to close and not to hide. By doing this i created a new window each time and (hopefully) released the old one.

This new behaviour forces med to manually recreate the windows.
You can now also recreate the window same as before. Nothing has changed in this.
Reply With Quote
  #8  
Old 06-17-2009, 07:28 AM
xalvaro xalvaro is offline
Ext GWT Premium Member
 
Join Date: Aug 2008
Posts: 27
xalvaro is on a distinguished road
Default

Why don't you let the close function (doing hide) and tag it deprecated? the same for setIconStyle (doing IconHelper into ).


When you have a big modular application, it's a little bit annoying to have to edit every source code, and i'm not the only one to reproach this.
Reply With Quote
  #9  
Old 06-17-2009, 07:30 AM
sven sven is offline
Ext GWT - Development Team
 
Join Date: Sep 2007
Location: Germany
Posts: 4,257
sven is on a distinguished road
Default

setIconStyle is still there. It internly calls for IconHelper.
Reply With Quote
  #10  
Old 06-17-2009, 01:32 PM
aphahn aphahn is offline
Ext GWT Premium Member
 
Join Date: Apr 2009
Posts: 5
aphahn is on a distinguished road
Cool

Quote:
Originally Posted by sven View Post

You can now also recreate the window same as before. Nothing has changed in this.
So why did you break backwards compatability? You could have made close just call hide instead of just making a common api vanish. So, I guess nothing has changed, except you broke the api. Not impressed.
Reply With Quote
Reply

Thread Tools

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 09:54 PM.

© 2006-2009 Ext, LLC
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.