Project

General

Profile

« Previous | Next » 

Revision c3ea5968

Added by Patrick Plitzner over 10 years ago

  • added creation of FieldUnits via wizard to bulk editor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/campanula/detailViews/specimen/SpecimenGeneralElement.java
60 60
     */
61 61
    public SpecimenGeneralElement(Composite parent, int style) {
62 62
        super(parent, style);
63
        setEnabled(false);
64 63
        setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
65 64
        {
66 65
            TableWrapLayout tableWrapLayout = new TableWrapLayout();
......
159 158

  
160 159
        collectorSelectionField = new EntitySelectionField(this, SWT.NONE);
161 160
        collectorSelectionField.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP, 1, 1));
162
        collectorSelectionField.getButton_selection().setEnabled(false);
163
        collectorSelectionField.getButton_edit().setEnabled(false);
164
        collectorSelectionField.getButton_remove().setEnabled(false);
165
        collectorSelectionField.getText().setEnabled(false);
166 161
        formToolkit.adapt(collectorSelectionField);
167 162
        formToolkit.paintBordersFor(collectorSelectionField);
168 163

  
......
176 171
        textCollectingNumber.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP, 1, 1));
177 172

  
178 173
        lblCollection = formToolkit.createLabel(this, "Collection", SWT.NONE);
174
        lblCollection.setEnabled(true);
179 175

  
180 176
        collectionSelectionField = new EntitySelectionField(this, SWT.NONE);
177
        collectionSelectionField.getButton_remove().setEnabled(true);
178
        collectionSelectionField.getButton_edit().setEnabled(true);
179
        collectionSelectionField.getButton_selection().setEnabled(true);
180
        collectionSelectionField.getText().setEnabled(true);
181
        collectionSelectionField.setEnabled(true);
181 182
        formToolkit.adapt(collectionSelectionField);
182 183
        formToolkit.paintBordersFor(collectionSelectionField);
183 184

  
184 185
        lblAccessionNumber = formToolkit.createLabel(this, "Accession Number", SWT.NONE);
186
        lblAccessionNumber.setEnabled(true);
185 187

  
186 188
        textAccessionNumber = formToolkit.createText(this, "New Text", SWT.NONE);
189
        textAccessionNumber.setEnabled(true);
187 190
        textAccessionNumber.setText("");
188 191
        textAccessionNumber.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP, 1, 1));
192
        Label label = new Label(this, SWT.NONE);
193
        label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.TOP, 1, 1));
194
        new Label(this, SWT.NONE);
189 195

  
190 196
    }
191 197

  

Also available in: Unified diff