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?
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?