Project

General

Profile

« Previous | Next » 

Revision 0c7f5077

Added by Patrick Plitzner over 8 years ago

Enhance search bar layout

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/searchFilter/DerivateSearchComposite.java
40 40
    private final Label lblTaxon;
41 41
    private final Label lblDerivateType;
42 42
    private final Button btnClearTaxon;
43
    private Label lblNewLabel;
43
    private Label lbltaxonAssignment;
44 44
    private Combo comboTaxonAssignment;
45
    private Label lblTitleCache;
45 46

  
46 47
    /**
47 48
     * Create the composite.
......
56 57
        lblTaxon = new Label(this, SWT.NONE);
57 58
        lblTaxon.setText("Taxon");
58 59

  
59
        textTaxonName = formToolkit.createText(this, "New Text", SWT.NONE);
60
        textTaxonName = formToolkit.createText(this, "New Text", SWT.BORDER);
60 61
        textTaxonName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
61 62
        textTaxonName.setEnabled(false);
62 63
        textTaxonName.setText("");
......
70 71
        btnClearTaxon.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));
71 72
        btnClearTaxon.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/trash.gif"));
72 73

  
73
        lblNewLabel = new Label(this, SWT.NONE);
74
        lblNewLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
75
        formToolkit.adapt(lblNewLabel, true, true);
76
        lblNewLabel.setText("Taxon assignment");
74
        lbltaxonAssignment = new Label(this, SWT.NONE);
75
        lbltaxonAssignment.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
76
        lbltaxonAssignment.setText("Taxon assignment");
77 77

  
78 78
        comboTaxonAssignment = new Combo(this, SWT.NONE);
79 79
        comboTaxonAssignment.setItems(new String[] { "All", "Yes", "No" });
......
83 83
        comboTaxonAssignment.select(ALL_SPECIMENS);
84 84
        new Label(this, SWT.NONE);
85 85

  
86
        searchField = formToolkit.createText(this, "New Text", SWT.NONE);
87
        searchField.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1));
86
        lblTitleCache = new Label(this, SWT.NONE);
87
        lblTitleCache.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
88
        lblTitleCache.setText("Title Cache");
89

  
90
        searchField = formToolkit.createText(this, "New Text", SWT.BORDER);
91
        searchField.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 3, 1));
88 92
        searchField.setText("");
89
        new Label(this, SWT.NONE);
90
        new Label(this, SWT.NONE);
91 93

  
92 94
        lblDerivateType = new Label(this, SWT.NULL);
93 95
        lblDerivateType.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));

Also available in: Unified diff