use of org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider in project nebula.widgets.nattable by eclipse.
the class CompositeLayer method setChildLayer.
// Child layer stuff
public void setChildLayer(String regionName, ILayer childLayer, final int layoutX, final int layoutY) {
if (childLayer == null) {
// $NON-NLS-1$
throw new IllegalArgumentException("Cannot set null child layer");
}
this.childLayerToRegionNameMap.put(childLayer, regionName);
this.regionNameToChildLayerMap.put(regionName, childLayer);
childLayer.addLayerListener(this);
this.childLayerLayout[layoutX][layoutY] = childLayer;
childLayer.setClientAreaProvider(new IClientAreaProvider() {
@Override
public Rectangle getClientArea() {
return getChildClientArea(layoutX, layoutY);
}
});
}
Aggregations