Search in sources :

Example 1 with FillHandleMarkupListener

use of org.eclipse.nebula.widgets.nattable.fillhandle.event.FillHandleMarkupListener in project nebula.widgets.nattable by eclipse.

the class FillHandleConfiguration method configureTypedLayer.

@Override
public void configureTypedLayer(NatTable natTable) {
    // initialization works here because configureLayer() is executed before
    // configureUiBindings()
    this.clipboard = natTable.getInternalCellClipboard();
    this.painter = new FillHandleLayerPainter();
    this.selectionLayer.setLayerPainter(this.painter);
    this.selectionLayer.addLayerListener(new FillHandleMarkupListener(this.selectionLayer));
    this.selectionLayer.registerCommandHandler(new InternalCopyDataCommandHandler(this.selectionLayer, this.clipboard));
    this.selectionLayer.registerCommandHandler(new FillHandlePasteCommandHandler(this.selectionLayer, this.clipboard));
}
Also used : FillHandleLayerPainter(org.eclipse.nebula.widgets.nattable.fillhandle.FillHandleLayerPainter) FillHandleMarkupListener(org.eclipse.nebula.widgets.nattable.fillhandle.event.FillHandleMarkupListener) FillHandlePasteCommandHandler(org.eclipse.nebula.widgets.nattable.fillhandle.command.FillHandlePasteCommandHandler) InternalCopyDataCommandHandler(org.eclipse.nebula.widgets.nattable.copy.command.InternalCopyDataCommandHandler)

Aggregations

InternalCopyDataCommandHandler (org.eclipse.nebula.widgets.nattable.copy.command.InternalCopyDataCommandHandler)1 FillHandleLayerPainter (org.eclipse.nebula.widgets.nattable.fillhandle.FillHandleLayerPainter)1 FillHandlePasteCommandHandler (org.eclipse.nebula.widgets.nattable.fillhandle.command.FillHandlePasteCommandHandler)1 FillHandleMarkupListener (org.eclipse.nebula.widgets.nattable.fillhandle.event.FillHandleMarkupListener)1