PDA

View Full Version : Caching windows



archmisha
13 Jul 2009, 1:01 PM
Hi,
Suppose i extend the window component and make a few MyWindow classes.
Is it possible to cache them somehow and only hide / show + clear fields (reset), in order to achieve greater performance, because building them each time is taking a valuable time.

thanks

tryanDLS
14 Jul 2009, 7:09 AM
You can either build multiple windows and hide (not close them) or dynamically change the window's form by adding/removing items and calling doLayout().

Animal
14 Jul 2009, 7:17 AM
The question is "is it possible to hide a Window?"

http://extjs.com/deploy/dev/docs/?class=Ext.Window&member=hide

archmisha
14 Jul 2009, 10:50 AM
No, i know i can physically hide a window.
I ment if there is some mechanism or ability that i dont know of, that supports this.
Cuz there is need to make it like singelton or hold references and then reset every time etc.

Guess I'll implement something

Animal
14 Jul 2009, 11:03 AM
I don't understand what you want.

You have a Window. You hide it.

What else do you need?