com.foxconn.ebook.reader.engine.model
类 BookSearchInfo

java.lang.Object
  继承者 com.foxconn.ebook.reader.engine.model.BookSearchInfo
所有已实现的接口:
IBookSearchCursor

public class BookSearchInfo
extends java.lang.Object
implements IBookSearchCursor

搜索信息類.


嵌套类摘要
static class BookSearchInfo.BookSearchResult
          The Class BookSearchResult.
 
字段摘要
static int SEARCH_HISTORY
          The Constant SEARCH_HISTORY.
 
方法摘要
 void addResults(BookSearchInfo.BookSearchResult[] results)
          添加搜索結果.
 BookSearchInfo.BookSearchResult getNextResult()
          獲取下一個搜索結果.
 BookSearchInfo.BookSearchResult getPreResult()
          獲取上一個搜索結果.
 java.util.List<BookSearchInfo.BookSearchResult> getResults()
          獲取搜索結果列表.
 java.util.List<java.lang.String> getSeachHistory()
          獲取搜索歷史列表.
 java.lang.String getSearchKeyword()
          獲取搜索關鍵字.
 boolean hasResults()
          檢查是否有搜索結果.
 void moveCursorToEnd()
          移動當前的搜索結果光標到搜索結果的末尾.
 void resetResults()
          重置搜索結果.
 void setSearchKeyword(java.lang.String key)
          設置搜索關鍵字.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

SEARCH_HISTORY

public static final int SEARCH_HISTORY
The Constant SEARCH_HISTORY.

另请参见:
常量字段值
方法详细信息

setSearchKeyword

public void setSearchKeyword(java.lang.String key)
从接口 IBookSearchCursor 复制的描述
設置搜索關鍵字.

指定者:
接口 IBookSearchCursor 中的 setSearchKeyword
参数:
key - 搜索關鍵字

getSearchKeyword

public java.lang.String getSearchKeyword()
从接口 IBookSearchCursor 复制的描述
獲取搜索關鍵字.

指定者:
接口 IBookSearchCursor 中的 getSearchKeyword
返回:
搜索關鍵字

getSeachHistory

public java.util.List<java.lang.String> getSeachHistory()
从接口 IBookSearchCursor 复制的描述
獲取搜索歷史列表.

指定者:
接口 IBookSearchCursor 中的 getSeachHistory
返回:
索歷史列表, List類型

resetResults

public void resetResults()
从接口 IBookSearchCursor 复制的描述
重置搜索結果.

指定者:
接口 IBookSearchCursor 中的 resetResults

addResults

public void addResults(BookSearchInfo.BookSearchResult[] results)
从接口 IBookSearchCursor 复制的描述
添加搜索結果.

指定者:
接口 IBookSearchCursor 中的 addResults
参数:
results - 搜索結果列表.

getResults

public java.util.List<BookSearchInfo.BookSearchResult> getResults()
从接口 IBookSearchCursor 复制的描述
獲取搜索結果列表.

指定者:
接口 IBookSearchCursor 中的 getResults
返回:
搜索結果列表

hasResults

public boolean hasResults()
从接口 IBookSearchCursor 复制的描述
檢查是否有搜索結果.

指定者:
接口 IBookSearchCursor 中的 hasResults
返回:
true, 結果不為空. false, 搜索為空.

getNextResult

public BookSearchInfo.BookSearchResult getNextResult()
从接口 IBookSearchCursor 复制的描述
獲取下一個搜索結果.

指定者:
接口 IBookSearchCursor 中的 getNextResult
返回:
下一個搜索結果

getPreResult

public BookSearchInfo.BookSearchResult getPreResult()
从接口 IBookSearchCursor 复制的描述
獲取上一個搜索結果.

指定者:
接口 IBookSearchCursor 中的 getPreResult
返回:
上一個搜索結果

moveCursorToEnd

public void moveCursorToEnd()
从接口 IBookSearchCursor 复制的描述
移動當前的搜索結果光標到搜索結果的末尾.

由于PDF書的搜索模式不是一次性搜索出所有結果,而是采用分段式,因此調用該方法後,

再調用 IAction.searchGoNext 方法會繼續搜索出更多結果.

其他格式書籍暫時無需考慮該方法.

指定者:
接口 IBookSearchCursor 中的 moveCursorToEnd