francescoNemesi
20 Mar 2009, 2:09 AM
Hi There,
I have a TabPanel, its TabItems are created dynamically and are set to closable with setClosable(true). Every time the user deletes a TabItem I perform a check to see how many TabItems are in the TabPanel, if only one TabItem is left I want to change its closable state to false, I do this with
tabItem.setClosable(false);
tabItem.layout();
but the close button does not disappear... I know I could use the BeforeRemove event, but I'd rather eliminate the close button altogether.
Any ideas?
Thanks
I have a TabPanel, its TabItems are created dynamically and are set to closable with setClosable(true). Every time the user deletes a TabItem I perform a check to see how many TabItems are in the TabPanel, if only one TabItem is left I want to change its closable state to false, I do this with
tabItem.setClosable(false);
tabItem.layout();
but the close button does not disappear... I know I could use the BeforeRemove event, but I'd rather eliminate the close button altogether.
Any ideas?
Thanks