Package org.apache.poi.hwpf.usermodel
Class BookmarksImpl
- java.lang.Object
-
- org.apache.poi.hwpf.usermodel.BookmarksImpl
-
-
Constructor Summary
Constructors Constructor Description BookmarksImpl(BookmarksTables bookmarksTables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bookmark
getBookmark(int index)
java.util.List<Bookmark>
getBookmarksAt(int startCp)
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)
-
-
-
Constructor Detail
-
BookmarksImpl
public BookmarksImpl(BookmarksTables bookmarksTables)
-
-
Method Detail
-
getBookmark
public Bookmark getBookmark(int index)
- Specified by:
getBookmark
in interfaceBookmarks
- Parameters:
index
- bookmark document index- Returns:
Bookmark
with specified index
-
getBookmarksAt
public java.util.List<Bookmark> getBookmarksAt(int startCp)
-
getBookmarksCount
public int getBookmarksCount()
- Specified by:
getBookmarksCount
in interfaceBookmarks
- Returns:
- count of
Bookmark
s in document
-
getBookmarksStartedBetween
public java.util.Map<java.lang.Integer,java.util.List<Bookmark>> getBookmarksStartedBetween(int startInclusive, int endExclusive)
- Specified by:
getBookmarksStartedBetween
in interfaceBookmarks
- Returns:
Map
of bookmarks started in specified range, where key is start position and value is sortedList
ofBookmark
-
-