2 * Copyright (C) 2019 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.taxeditor
.view
.search
.facet
;
11 import org
.eclipse
.swt
.SWT
;
12 import org
.eclipse
.swt
.layout
.GridData
;
13 import org
.eclipse
.swt
.layout
.GridLayout
;
14 import org
.eclipse
.swt
.widgets
.Button
;
15 import org
.eclipse
.swt
.widgets
.Composite
;
22 public abstract class CheckBoxSearchResultComposite
<T
, S
extends SearchResult
<T
>> extends Composite
{
25 private Button btnCheck
;
27 public CheckBoxSearchResultComposite(S result
, Composite parent
, int style
) {
30 setLayoutData(new GridData(SWT
.FILL
, SWT
.CENTER
, true, false));
31 GridLayout gridLayout
= new GridLayout();
32 gridLayout
.marginWidth
= 0;
33 gridLayout
.horizontalSpacing
= 0;
34 gridLayout
.numColumns
= 2;
35 setLayout(gridLayout
);
37 Composite composite
= new Composite(this, SWT
.NONE
);
38 composite
.setLayout(new GridLayout(1, false));
39 composite
.setLayoutData(new GridData(SWT
.FILL
, SWT
.CENTER
, false, false, 1, 1));
41 btnCheck
= new Button(composite
, SWT
.CHECK
);
42 btnCheck
.setLayoutData(new GridData(SWT
.CENTER
, SWT
.CENTER
, false, false, 1, 1));
47 public abstract Composite
createContent(Composite parent
);
49 public S
getResult() {
53 public Button
getBtnCheck() {