Example usage for Java org.eclipse.jface.fieldassist ContentProposalAdapter fields, constructors, methods, implement or subclass
The text is from its open source code.
int | PROPOSAL_INSERT Indicates that a chosen proposal should be inserted into the field. |
int | PROPOSAL_REPLACE Indicates that a chosen proposal should replace the entire contents of the field. |
int | PROPOSAL_IGNORE Indicates that the contents of the control should not be modified when a proposal is chosen. |
int | FILTER_NONE Indicates that there should be no filter applied as keys are typed in the popup. |
int | FILTER_CHARACTER Indicates that a single character filter applies as keys are typed in the popup. |
int | FILTER_CUMULATIVE Indicates that a cumulative filter applies as keys are typed in the popup. |
ContentProposalAdapter(Control control, IControlContentAdapter controlContentAdapter, IContentProposalProvider proposalProvider, KeyStroke keyStroke, char[] autoActivationCharacters) Construct a content proposal adapter that can assist the user with choosing content for the field. |
void | addContentProposalListener(IContentProposalListener listener) Add the specified listener to the list of content proposal listeners that are notified when content proposals are chosen. |
void | addContentProposalListener(IContentProposalListener2 listener) Add the specified listener to the list of content proposal listeners that are notified when a content proposal popup is opened or closed. |
IContentProposalProvider | getContentProposalProvider() Return the proposal provider that provides content proposals given the current content of the field. |
Control | getControl() Get the control on which the content proposal adapter is installed. |
boolean | isProposalPopupOpen() Answers a boolean indicating whether the main proposal popup is open. |
void | setAutoActivationCharacters(char[] autoActivationCharacters) Set the array of characters that will trigger autoactivation of the popup. |
void | setAutoActivationDelay(int delay) Set the delay, in milliseconds, used before autoactivation is triggered. |
void | setEnabled(boolean enabled) Set the boolean flag that determines whether the adapter is enabled. |
void | setFilterStyle(int filterStyle) Set the integer style that indicates how keystrokes affect the content of the proposal popup while it is open. |
void | setLabelProvider(ILabelProvider labelProvider) Set the label provider that is used to show proposals. |
void | setPopupSize(Point size) Set the size, in pixels, of the content proposal popup. |
void | setPropagateKeys(boolean propagateKeys) Set the boolean that indicates whether key events (including auto-activation characters) received by the content proposal popup should also be propagated to the adapted control when the proposal popup is open. |
void | setProposalAcceptanceStyle(int acceptance) Set the integer style that indicates how an accepted proposal affects the control's content. |