public interface Bookmarks
Modifier and Type | Method and Description |
---|---|
Bookmark |
getBookmark(int index) |
int |
getBookmarksCount() |
java.util.Map<java.lang.Integer,java.util.List<Bookmark>> |
getBookmarksStartedBetween(int startInclusive, int endExclusive) |
void |
remove(int index)
Remove bookmark from document (but not the bookmark text)
(从文档中删除书签(但不是书签文本))
|
Bookmark getBookmark(int index) throws java.lang.IndexOutOfBoundsException
index
- bookmark document index
(index - 书签文档索引)
Bookmark
with specified index
(具有指定索引的书签)
java.lang.IndexOutOfBoundsException
- if bookmark with specified index not present in document
(java.lang.IndexOutOfBoundsException - 如果文档中不存在具有指定索引的书签)
int getBookmarksCount()
Bookmark
s in document
(文档中的书签数)
java.util.Map<java.lang.Integer,java.util.List<Bookmark>> getBookmarksStartedBetween(int startInclusive, int endExclusive)
Map
of bookmarks started in specified range, where key is start position and value is sorted
List
of
Bookmark
(在指定范围内开始的书签映射,其中键是开始位置,值是排序的书签列表)
void remove(int index)
index
- bookmark document index to be removed
(index - 要删除的书签文档索引)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.