Example usage for com.google.gwt.user.client.ui BasicSuggestionDisplay BasicSuggestionDisplay

List of usage examples for com.google.gwt.user.client.ui BasicSuggestionDisplay BasicSuggestionDisplay

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui BasicSuggestionDisplay BasicSuggestionDisplay.

Prototype

public BasicSuggestionDisplay() 

Source Link

Document

Construct a new BasicSuggestionDisplay .

Usage

From source file:uk.ac.ebi.fg.annotare.prototype.datagrid.client.cell.EditSuggestCell.java

License:Apache License

/**
 * Construct a new EditSuggestCell that will use a given {@link SafeHtmlRenderer}
 * to render the value when not in edit mode.
 *
 * @param renderer a {@link SafeHtmlRenderer SafeHtmlRenderer<String>}
 *          instance/*from  w  w  w . ja  v  a 2s  .  co m*/
 */
public EditSuggestCell(SafeHtmlRenderer<String> renderer, SuggestOracle oracle) {
    super(CLICK, KEYUP, KEYDOWN, BLUR);
    if (template == null) {
        template = GWT.create(Template.class);
    }
    if (renderer == null) {
        throw new IllegalArgumentException("renderer == null");
    }
    this.renderer = renderer;

    this.oracle = oracle;
    this.display = null != oracle ? new BasicSuggestionDisplay() : null;
}