rian.k
4 May 2009, 6:58 AM
Hi,
I'm trying to add a listener to a LayoutContainer holding some Panels,
so I can switch the selected Panel on clicks. However, with the following
code I get zero events:
container.addListener(Events.OnClick, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
selected = (LayoutContainer) be.getSource();
}
});Where am I wrong?
thanks
I'm trying to add a listener to a LayoutContainer holding some Panels,
so I can switch the selected Panel on clicks. However, with the following
code I get zero events:
container.addListener(Events.OnClick, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
selected = (LayoutContainer) be.getSource();
}
});Where am I wrong?
thanks