|Re: Hiding scrollbars of NatTable? [message #1014776 is a reply to message #1014754]
||Tue, 26 February 2013 12:53
| Alex Kipling
Registered: July 2012
Finally I managed to hide the ScrollBars and to make ViewportLayer using own ScrollBars (ScrollBars of my ScrollableComposite).|
All I wanted to do was making the ViewPortLayer use my own scrollbars. This I could to by passing them on vBarListener, hBarListener creation.
But I could not do it by overriding the method, because vBarListener, hBarListener are private. By introducing my own vars - I would lose the functionality, impleneted in the private methods, inside ViewportLayer.
So I had to create my own ViewportLayer by copying the existing.
So I had to copy paste the VerticalScrollBarHandler, HorizontalScrollBarHandler
So I had to copy paste the ScrollBarHandlerTemplate
It would really be much easier, if ViewPortLayer#vBarListener, ViewPortLayer#hBarListener would have been protected.
Can I make a contribution, where those two variables will be changes to protected?
Is somehting like that - accepted?
The problem of manipulating the scrollbars seems to be interesting for other people too: http://sourceforge.net/projects/nattable/forums/forum/744994/topic/5266231
[Updated on: Tue, 26 February 2013 12:57]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.11612 seconds