Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » RowHeaderLayer configuration not reflecting.(For Suppressing Row resize feature add custom RowHeaderLayer config.)
RowHeaderLayer configuration not reflecting. [message #1065911] Fri, 28 June 2013 09:13 Go to next message
Courtney Jines is currently offline Courtney JinesFriend
Messages: 13
Registered: September 2012
Junior Member
Hi,

For disabling Row height re-size feature. I created my one RowHeaderCofiguration class as shown below.

//_table is actually NatTableBuilder.

public class MyRowHeaderConfiguration extends DefaultRowHeaderLayerConfiguration {

    @Override
    protected void addRowHeaderUIBindings() {
        //Suppressing row re-size bindings.
    }


RowHeaderLayer rowHeaderLayer =.....(RowHeaderLayer)_table.getRowHeaderLayer().getUnderlyingLayersByColumnPosition(0).toArray()[0];
rowHeaderLayer.clearConfiguration();
rowHeaderLayer.addConfiguration(new MyRowHeaderConfiguration());
_table.getNatTable().configure();

But it is not working. Please let me know what i am missing. Thanks in advance for the help.
Re: RowHeaderLayer configuration not reflecting. [message #1065943 is a reply to message #1065911] Fri, 28 June 2013 12:35 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 1431
Registered: July 2012
Senior Member
I think it should work this way. But as the NatTable Builder is involved, I'm not sure what might be wrong.

Possibly the NatTable is already configured and calling configure() again doesn't have an effect.
Previous Topic:Disable filter on specific columns
Next Topic:bug introduced in 1.0.0
Goto Forum:
  


Current Time: Fri Dec 19 13:11:31 GMT 2014

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

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