iautocompleteprovider.java
来自「利用它可以做出非常漂亮的swt界面,包含的组件有PShelf Plist」· Java 代码 · 共 26 行
JAVA
26 行
package com.swtplus.widgets.autocomplete;
/**
* Provides matching values for auto completion. Typical autocomplete behavior
* will show values that begin with the text that has been typed. This is
* how DefaultAutoCompleteProvider behaves. Other autocomplete behavior can
* be accomodated by using different provider. For example, a browser typically
* shows autocomple values that begin with the typed text with or without the
* "http://".
*/
public interface IAutoCompleteProvider {
/**
* Returns the matching autocompletion values for the current
* text value entered by the user. The values currently set
* on the AutoComplete instance are given, but it is up to the
* implementer to determine if they are even required/used.
*
* @param values values set on AutoComplete using setValues()
* @param typedText current text in the Text widget
* @return an array of values to display in the autocomplete popup
*/
public String[] getValues(String[] values,String typedText);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?