2017-02-15 7 views
0

クリックするとシングルセル選択を無効にする方法は? Example

nattable:シングルセル選択を無効にする方法は?

私はそのようにしようとしている:事前に

class CustomDefaultSelectionBindings extends DefaultSelectionBindings { 

    @Override 
    protected void configureBodyMouseClickBindings(final UiBindingRegistry uiBindingRegistry) { 
     //do nothing 
    } 
} 

class CustomDefaultSelectionLayerConfiguration extends DefaultSelectionLayerConfiguration { 
    @Override 
    protected void addSelectionUIBindings() { 
     addConfiguration(new CustomDefaultSelectionBindings()); 
    } 
} 

final SelectionLayer selectionLayer = new SelectionLayer(bodyDataLayer); 
selectionLayer.addConfiguration(new CustomDefaultSelectionLayerConfiguration()); 



感謝を。

答えて

0

デフォルトの設定

final SelectionLayer selectionLayer = new SelectionLayer(bodyDataLayer, false); 
selectionLayer.addConfiguration(new CustomDefaultSelectionLayerConfiguration()); 

しかし、あなたはまだあるため、本体のマウスドラッグモードの体に選択することができ、上記の溶液となしSelectionLayerを作成する必要があります。簡単な方法は、とにかくSelectionLayerを使用しないことです。あなたが持っているその他の要件については不明です。

+0

まずは、ありがとうございます。 'CompositeFreezeLayer'を使っていくつかの行をフリーズするので、選択レイヤーが必要です。 マウスドラッグモードを無効にする方法はありますか? – ADeveloper

+0

実際にマウスをクリックしたのと同じ方法です。 –

関連する問題