public class AutoCompleteField extends Object
ContentProposalAdapter
,
SimpleContentProposalProvider
Constructor and Description |
---|
AutoCompleteField(Control control,
IControlContentAdapter controlContentAdapter,
String[] proposals)
Construct an AutoComplete field on the specified control, whose
completions are characterized by the specified array of Strings.
|
public AutoCompleteField(Control control, IControlContentAdapter controlContentAdapter, String[] proposals)
control
- the control for which autocomplete is desired. May not be
null
.controlContentAdapter
- the IControlContentAdapter
used to obtain and
update the control's contents. May not be null
.proposals
- the array of Strings representing valid content proposals for
the field.public void setProposals(String[] proposals)
proposals
- the array of Strings to be used as proposals.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.