com.japisoft.xmlpad.bookmark
Class DefaultBookmarkModel

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--com.japisoft.xmlpad.bookmark.DefaultBookmarkModel
All Implemented Interfaces:
BookmarkModel, java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class DefaultBookmarkModel
extends java.util.ArrayList
implements BookmarkModel

Default model implementation

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com
See Also:
BookmarkModel, Serialized Form

Constructor Summary
DefaultBookmarkModel()
           
 
Method Summary
 void addBookmarkPosition(BookmarkPosition position)
          Add a new bookmark
 int getBookmarkCount()
           
 BookmarkPosition getBookmarkPositionAt(int index)
           
 void removeAllBookmarks()
          Remove all boomarks
 void removeBookmarkPosition(BookmarkPosition position)
          Remove a known bookmark
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

DefaultBookmarkModel

public DefaultBookmarkModel()
Method Detail

addBookmarkPosition

public void addBookmarkPosition(BookmarkPosition position)
Description copied from interface: BookmarkModel
Add a new bookmark

Specified by:
addBookmarkPosition in interface BookmarkModel

removeBookmarkPosition

public void removeBookmarkPosition(BookmarkPosition position)
Description copied from interface: BookmarkModel
Remove a known bookmark

Specified by:
removeBookmarkPosition in interface BookmarkModel

getBookmarkCount

public int getBookmarkCount()
Specified by:
getBookmarkCount in interface BookmarkModel
Returns:
the number of bookmark

getBookmarkPositionAt

public BookmarkPosition getBookmarkPositionAt(int index)
Specified by:
getBookmarkPositionAt in interface BookmarkModel
Returns:
a bookmark at this index starting from 0

removeAllBookmarks

public void removeAllBookmarks()
Description copied from interface: BookmarkModel
Remove all boomarks

Specified by:
removeAllBookmarks in interface BookmarkModel