Search in sources :

Example 1 with DefaultSelectionStyleConfiguration

use of net.sourceforge.nattable.selection.config.DefaultSelectionStyleConfiguration in project translationstudio8 by heartsome.

the class XLIFFEditorSelectionLayerConfiguration method addSelectionStyleConfig.

protected void addSelectionStyleConfig() {
    // 去掉表头选中样式和选中单元格样式
    DefaultSelectionStyleConfiguration configure = new DefaultSelectionStyleConfiguration() {

        @Override
        protected void configureHeaderHasSelectionStyle(IConfigRegistry configRegistry) {
        }

        @Override
        protected void configureHeaderFullySelectedStyle(IConfigRegistry configRegistry) {
        }

        @Override
        protected void configureSelectionAnchorStyle(IConfigRegistry configRegistry) {
        }
    };
    //Display.getCurrent().getSystemColor(SWT.COLOR_LIST_SELECTION);
    configure.selectionBgColor = GUIHelper.getColor(210, 210, 240);
    configure.selectionFgColor = Display.getCurrent().getSystemColor(SWT.COLOR_BLACK);
    addConfiguration(configure);
}
Also used : DefaultSelectionStyleConfiguration(net.sourceforge.nattable.selection.config.DefaultSelectionStyleConfiguration) IConfigRegistry(net.sourceforge.nattable.config.IConfigRegistry)

Aggregations

IConfigRegistry (net.sourceforge.nattable.config.IConfigRegistry)1 DefaultSelectionStyleConfiguration (net.sourceforge.nattable.selection.config.DefaultSelectionStyleConfiguration)1