Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Listener on header changes(Header)
icon3.gif  Listener on header changes [message #1728142] Thu, 31 March 2016 11:04 Go to next message
Martin Manthey is currently offline Martin MantheyFriend
Messages: 7
Registered: March 2016
Junior Member
It is possible to listen on header changes like column resizing, column reordering and column hiding in order to persist the header state immediately?
Re: Listener on header changes [message #1728175 is a reply to message #1728142] Thu, 31 March 2016 15:01 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
It is not a header state, but basically yes. There should be corresponding events for all you mentioned. But you could also check for the general events e.g. IVisualChangeEvent
Re: Listener on header changes [message #1728227 is a reply to message #1728175] Fri, 01 April 2016 08:35 Go to previous message
Martin Manthey is currently offline Martin MantheyFriend
Messages: 7
Registered: March 2016
Junior Member
It works fine.

layer.addLayerListener(new ILayerListener() {

@Override
public void handleLayerEvent(ILayerEvent event) {
// first check if the state is loaded to avoid save before the state is loaded
if (checkIfTheStateIsLoaded && event instanceof ColumnVisualChangeEvent) {
saveState();
}
}
});
Previous Topic:Missing tag for 1.3.0 in repository?
Next Topic:Columns shall be arrange on the available width of nattable
Goto Forum:
  


Current Time: Thu Mar 28 09:34:43 GMT 2024

Powered by FUDForum. Page generated in 0.03660 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top