private Text searchField;
private Table table;
private TableViewer resultViewer;
+ private Combo comboDerivateType;
/**
* Create the composite.
lblDerivateType.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
lblDerivateType.setText("Derivate Type");
- Combo combo = new Combo(this, SWT.NONE);
- combo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
- formToolkit.paintBordersFor(combo);
+ comboDerivateType = new Combo(this, SWT.NONE);
+ comboDerivateType.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
+ formToolkit.paintBordersFor(comboDerivateType);
searchField = formToolkit.createText(this, "New Text", SWT.NONE);
searchField.setText("");
public TableViewer getResultViewer() {
return resultViewer;
}
+ public Combo getComboDerivateType() {
+ return comboDerivateType;
+ }
}
});
configurator = new IdentifiableServiceConfiguratorImpl<SpecimenOrObservationBase<DerivedUnitFacadeCacheStrategy>>();
+
}
private void searchDerivates(String searchString){
return derivateSearchComposite;
}
+ private void setEnable(boolean enabled){
+ derivateSearchComposite.setEnabled(enabled);
+ derivateSearchComposite.getResultViewer().getTable().setEnabled(enabled);
+ derivateSearchComposite.getSearchField().setEnabled(enabled);
+ }
+
}