dato.java
8 Apr 2011, 4:02 AM
Hello,
I have several tabs and need to do some action when tab is being closed,but it does not work,i dont know why
TabItem ti = new TabItem(id);
ti.setClosable(true);
ti.addListener(Events.Close, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent arg0) {
com.google.gwt.user.client.Window.alert("");
}
});
tabPanel.add(ti);
I use EXT GWT 2.2.3 and GWT 2.2.1 version
I have several tabs and need to do some action when tab is being closed,but it does not work,i dont know why
TabItem ti = new TabItem(id);
ti.setClosable(true);
ti.addListener(Events.Close, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent arg0) {
com.google.gwt.user.client.Window.alert("");
}
});
tabPanel.add(ti);
I use EXT GWT 2.2.3 and GWT 2.2.1 version