swt - Resizable row/column headers in NatTable -


i have nattable column , row headers, , use cornerlayer it. how make row , column headers resizable other column or row?

you need register necessary bindings header regions

gridlayer.addconfiguration(new abstractuibindingconfiguration() {      @override     public void configureuibindings(uibindingregistry uibindingregistry) {         uibindingregistry.registerfirstmousemovebinding(                 new columnresizeeventmatcher(swt.none, gridregion.row_header, 0),                 new columnresizecursoraction());          uibindingregistry.registerfirstmousedragmode(                 new columnresizeeventmatcher(swt.none, gridregion.row_header, 1),                 new columnresizedragmode());          uibindingregistry.registerfirstmousemovebinding(                 new rowresizeeventmatcher(swt.none, gridregion.column_header, 0),                 new rowresizecursoraction());          uibindingregistry.registerfirstmousedragmode(                 new rowresizeeventmatcher(swt.none, gridregion.column_header, 1),                 new rowresizedragmode());     } }); 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -