Revision 0a0a634c
Added by Patrick Plitzner about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/search/facet/SearchComposite.java | ||
---|---|---|
10 | 10 |
package eu.etaxonomy.taxeditor.view.search.facet; |
11 | 11 |
|
12 | 12 |
import org.eclipse.swt.SWT; |
13 |
import org.eclipse.swt.custom.SashForm; |
|
13 | 14 |
import org.eclipse.swt.custom.ScrolledComposite; |
14 | 15 |
import org.eclipse.swt.layout.GridData; |
15 | 16 |
import org.eclipse.swt.layout.GridLayout; |
... | ... | |
24 | 25 |
* @date 22.01.2019 |
25 | 26 |
* |
26 | 27 |
*/ |
27 |
public class SearchComposite extends Composite {
|
|
28 |
public class SearchComposite extends SashForm {
|
|
28 | 29 |
private Text txtSearch; |
29 | 30 |
private ScrolledComposite filterScrolledComposite; |
30 | 31 |
private Composite filterListComposite; |
31 | 32 |
private Composite searchResultComposite; |
32 | 33 |
private ScrolledComposite resultScrolledComposite; |
33 |
private Composite composite; |
|
34 | 34 |
private Button btnSearchButton; |
35 | 35 |
|
36 | 36 |
/** |
... | ... | |
45 | 45 |
Composite filterComposite = new Composite(this, SWT.NONE); |
46 | 46 |
filterComposite.setLayout(new GridLayout(1, false)); |
47 | 47 |
GridData gd_filterComposite = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1); |
48 |
gd_filterComposite.widthHint = 170; |
|
49 | 48 |
filterComposite.setLayoutData(gd_filterComposite); |
50 | 49 |
|
51 |
composite = new Composite(filterComposite, SWT.NONE); |
|
50 |
Composite composite = new Composite(filterComposite, SWT.NONE);
|
|
52 | 51 |
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1)); |
53 | 52 |
composite.setLayout(new GridLayout(2, false)); |
54 | 53 |
|
... | ... | |
73 | 72 |
resultScrolledComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); |
74 | 73 |
resultScrolledComposite.setExpandHorizontal(true); |
75 | 74 |
resultScrolledComposite.setExpandVertical(true); |
75 |
setWeights(new int[] {40, 60}); |
|
76 | 76 |
|
77 | 77 |
initSearchResultList(); |
78 | 78 |
|
Also available in: Unified diff
ref #8011 Layout improvements