PDA

View Full Version : Listener on LayoutContainer



alex weber
19 Jun 2010, 12:12 AM
Hi,
???????????? (http://www.forexsa.org/)

I'm trying to add a listener to a LayoutContainer holding some Panels,
so I can switch the ???? (http://www.zimmerfinder.co.il/)
selected Panel on clicks. However, with the following
code I get zero events:
??????????? (http://www.zimmerfinder.co.il/t/185-/)

Code:
container.addListener(Events.OnClick, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
selected = (LayoutContainer) be.getSource();
}
}); http://preisvergleich-kredite.de/
http://www.baiaopharma.com/
Where am I wrong?
thanks

sven
19 Jun 2010, 2:45 AM
container.sinkEvents(Event.ONCLICK); is missing. GXT 2.2 will do this automatically