public class BooksListModel extends AbstractListModel
for license details.
,
Serialized FormModifier and Type | Class and Description |
---|---|
(package private) class |
BooksListModel.CustomListDataListener
So we can get a handle on what Bibles there are
|
Modifier and Type | Field and Description |
---|---|
private org.crosswire.jsword.book.BookList |
bookList
The list of books in this tree
|
protected List<org.crosswire.jsword.book.Book> |
books
The array of versions.
|
protected Comparator<org.crosswire.jsword.book.Book> |
comparator
The sort algorithm to use.
|
private org.crosswire.jsword.book.BookFilter |
filter
The filter used to choose Bibles
|
private BooksListModel.CustomListDataListener |
listener
The listener
|
private static org.slf4j.Logger |
log
The log stream
|
private static long |
serialVersionUID
Serialization ID
|
listenerList
Constructor and Description |
---|
BooksListModel()
Basic constructor
|
BooksListModel(org.crosswire.jsword.book.BookFilter filter)
Basic constructor
|
BooksListModel(org.crosswire.jsword.book.BookFilter filter,
org.crosswire.jsword.book.BookList bookList,
Comparator<org.crosswire.jsword.book.Book> comparator)
Basic constructor for a filtered list of books, ordered as requested.
|
BooksListModel(org.crosswire.jsword.book.BookFilter filter,
Comparator<org.crosswire.jsword.book.Book> comp)
Basic constructor, redefining ordering.
|
Modifier and Type | Method and Description |
---|---|
void |
addListDataListener(ListDataListener li) |
protected void |
cacheData()
Setup the data-stores of the current Bibles and drivers
|
protected void |
fireContentsChanged(Object source,
int index0,
int index1) |
Object |
getElementAt(int index) |
int |
getIndexOf(Object test)
Returns the index-position of the specified object in the list.
|
int |
getSize() |
private void |
readObject(ObjectInputStream is)
Serialization support.
|
void |
removeListDataListener(ListDataListener li) |
void |
setFilter(org.crosswire.jsword.book.BookFilter filter) |
fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners
private transient org.crosswire.jsword.book.BookList bookList
private transient org.crosswire.jsword.book.BookFilter filter
private transient BooksListModel.CustomListDataListener listener
protected transient List<org.crosswire.jsword.book.Book> books
protected transient Comparator<org.crosswire.jsword.book.Book> comparator
private static final org.slf4j.Logger log
private static final long serialVersionUID
public BooksListModel()
public BooksListModel(org.crosswire.jsword.book.BookFilter filter)
public BooksListModel(org.crosswire.jsword.book.BookFilter filter, Comparator<org.crosswire.jsword.book.Book> comp)
public BooksListModel(org.crosswire.jsword.book.BookFilter filter, org.crosswire.jsword.book.BookList bookList, Comparator<org.crosswire.jsword.book.Book> comparator)
public int getSize()
public Object getElementAt(int index)
public int getIndexOf(Object test)
test
- the object to findpublic void setFilter(org.crosswire.jsword.book.BookFilter filter)
filter
- public void addListDataListener(ListDataListener li)
addListDataListener
in interface ListModel
addListDataListener
in class AbstractListModel
public void removeListDataListener(ListDataListener li)
removeListDataListener
in interface ListModel
removeListDataListener
in class AbstractListModel
protected final void cacheData()
protected void fireContentsChanged(Object source, int index0, int index1)
fireContentsChanged
in class AbstractListModel
private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException
is
- IOException
ClassNotFoundException