Example usage for com.google.gwt.search.client WebResult getContent

List of usage examples for com.google.gwt.search.client WebResult getContent

Introduction

In this page you can find the example usage for com.google.gwt.search.client WebResult getContent.

Prototype

public native String getContent() ;

Source Link

Document

Returns a brief snippet of information from the page associated with the search result.

Usage

From source file:com.appspot.socialinquirer.client.activity.HomeActivity.java

License:Apache License

/**
 * Creates the question./*from ww  w . j  av a  2 s .  c om*/
 *
 * @param result the result
 * @return the question
 */
private Question createQuestion(WebResult result) {
    Question task = new Question();
    task.setTitle(result.getTitle());
    task.setContent(result.getContent());
    return task;
}