|
|
Re: NatTable data refresh issue on Horizontal and Vertical Scroll [message #1748030 is a reply to message #1748016] |
Thu, 17 November 2016 21:31 |
Shwetha Venkatesh Messages: 15 Registered: March 2016 |
Junior Member |
|
|
Here is the snippet below , I am using the below snippet from FullFeatureBodyLayerStack from Examples plugin.
//FullFeatureBodyLayerStack.java
IColumnPropertyAccessor<T> columnPropertyAccessor = new ReflectiveColumnPropertyAccessor<T>(
propertyNames);
this.bodyDataProvider = new ListDataProvider<T>(dataList, columnPropertyAccessor);
this.bodyDataLayer = new DataLayer(this.bodyDataProvider);
this.glazedListsEventLayer = new GlazedListsEventLayer<T>(this.bodyDataLayer,
eventList);
this.blinkingLayer = new BlinkLayer<T>(this.glazedListsEventLayer,
this.bodyDataProvider, rowIdAccessor, columnPropertyAccessor, configRegistry);
//FormPage.java -> createFormContent()
// Row header
final DefaultRowHeaderDataProvider rowHeaderDataProvider = new DefaultRowHeaderDataProvider(
this.bodyDataProvider);
DefaultRowHeaderDataLayer rowHeaderDataLayer = new DefaultRowHeaderDataLayer(rowHeaderDataProvider);
rowHeaderDataLayer.setDefaultColumnWidth(50);
ILayer rowHeaderLayer = new RowHeaderLayer(rowHeaderDataLayer, bodyLayer, bodyLayer.getSelectionLayer());
// Corner
final DefaultCornerDataProvider cornerDataProvider = new DefaultCornerDataProvider(
columnHeaderLayer.getColumnHeaderDataProvider(), rowHeaderDataProvider);
DataLayer cornerDataLayer = new DataLayer(cornerDataProvider);
ILayer cornerLayer = new CornerLayer(cornerDataLayer, rowHeaderLayer, columnHeaderLayer);
// Grid
GridLayer gridLayer = new GridLayer(bodyLayer, columnHeaderLayer, rowHeaderLayer, cornerLayer);
IConfigLabelAccumulator cellLabelAccumulator = getConfigLabelAccumulator(listOfPlans, bodyLayer);
bodyLayer.setConfigLabelAccumulator(cellLabelAccumulator);
this.natTable = new NatTable(parent, gridLayer, false);
DataList is a List of Objects from my pojo model.
Appreciate if you could let me know what is it going wrong here.
Thank you very much for the inputs.
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04200 seconds