sjivan / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 0 forks source link

Window.CloseAction class has a private constructor it should be a protected one #508

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. The requirement is that some additional clean-up is to be done before a
modal window is closed. Window.setCloseAction(Window.CloseAction ca) is the
method that has to be used to plug in that behaviour for window closing
through close tool. 

2. Typically the solution for above scenario would be to subclass
Window.CloseAction, override String getCloseAction() method and do the
extra activity before say returning Window.CLOSE.getCloseAction(), this is
the intended use of that method. 

3. Making the constructor private defeats the whole purpose of the method
and having the nested class defined for this as there is no way we can have
a custom behaviour.

What is the expected output? What do you see instead?
Ideally Window.CloseAction class's constructor  should be a protected

Please use labels and text to provide additional information.

Original issue reported on code.google.com by sumanyad...@gmail.com on 12 Aug 2009 at 3:26

GoogleCodeExporter commented 8 years ago
I am using gwt-ext 2.0.2 and ext-2.2 

Original comment by sumanyad...@gmail.com on 12 Aug 2009 at 3:34