-
28 May 2009 10:54 PM #1
Handling close event in tabitem
Handling close event in tabitem
needed help in handling cloe event in a tabitem .
Thanks
Avinash
-
2 Jun 2009 12:19 AM #2
Hi.
For listening to a close tab event, you need to add this listener to your TabPanel:
Where closingListener is:Code:addListener(Events.Remove, closingListener);
Code:private Listener<TabPanelEvent> closingListener = new Listener<TabPanelEvent>() { public void handleEvent(TabPanelEvent be) { TabItem tabItem = be.getItem(); //handle it the way you need } };


Reply With Quote