PDA

View Full Version : Windows maximizing on header doubleclick



xalvaro
13 May 2009, 2:13 AM
I try to implement what is written in this post :http://extjs.com/forum/showthread.php?t=61528 with GXT 2.0.




public void onModuleLoad()
{
final Window win = new Window();
win.getHeader().sinkEvents(Event.ONDBLCLICK);
win.getHeader().addListener(new EventType(Event.ONDBLCLICK), new Listener<ComponentEvent>()
{

public void handleEvent(ComponentEvent be)
{
Info.display("test","test");
win.maximize();
}
});
win.show();

}

But nothing happen :(.

What is the correct implementation to do this?

sven
13 May 2009, 2:15 AM
new EventType(Event.ONDBLCLICK) -> use Events.OnDoubleClick

xalvaro
13 May 2009, 2:20 AM
thanks =D>