|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |
public interface IBookChapterCursor
章節處理接口
Example:
void loadChapters() {
Book book = getEasyViewer().getBook();
IBookChapterCursor bcOps = book.getBookChapterCursor();
// 獲取章節列表
ArrayList
// 填充listView
ArrayAdapter android.R.layout.simple_list_item_1);
for (Chapter chapter : list) {
adapter.add(chapter.title);
}
mTopicListView.setAdapter(adapter);
}
方法摘要
boolean
chapterIsEmpty()
章節列表是否為空.
boolean
chapterIsLoad()
章節是否已經加載.
int
getChapterIndexByTitle(java.lang.String title)
根据目录标题获取目录的序号.
java.util.List<ChapterTreeInfo.Chapter>
getChapterList()
獲取章節對象的列表.
int[]
getChapterPageNums()
获取每个目录标题对应的页码.
java.lang.String[]
getChapterTitles()
获取目录标题列表.
int
getCurChapterIndex()
获取当前目录的序号.
int
getMaxChapterNum()
获取最大的目录序号.
int
getNextChapterIndex(int pageIndex)
根据页码序号获取后一章节的序号.
int
getPageIndexByChapterIndex(int index)
獲取對應章節序號的頁碼.
int
getPreviousChapterIndex(int pageIndex)
根据页码序号获取前一章节的序号.
boolean
hasNextChapter()
检查是否存在下一章节.
boolean
hasPreviousChapter()
检查是否存在前一章节.
方法详细信息
chapterIsLoad
boolean chapterIsLoad()
chapterIsEmpty
boolean chapterIsEmpty()
getChapterList
java.util.List<ChapterTreeInfo.Chapter> getChapterList()
getPageIndexByChapterIndex
int getPageIndexByChapterIndex(int index)
index
- 章節序號
getNextChapterIndex
int getNextChapterIndex(int pageIndex)
pageIndex
- 页码序号
getPreviousChapterIndex
int getPreviousChapterIndex(int pageIndex)
pageIndex
- 页码序号
hasNextChapter
boolean hasNextChapter()
hasPreviousChapter
boolean hasPreviousChapter()
getMaxChapterNum
int getMaxChapterNum()
getCurChapterIndex
int getCurChapterIndex()
getChapterPageNums
int[] getChapterPageNums()
getChapterIndexByTitle
int getChapterIndexByTitle(java.lang.String title)
title
- 目录标题
getChapterTitles
java.lang.String[] getChapterTitles()
概述
软件包
类
使用
树
已过时
索引
帮助
上一个类
下一个类
框架
无框架
摘要: 嵌套 | 字段 | 构造函数 | 方法
详细信息: 字段 | 构造函数 | 方法