public class BooksComboBoxModel extends BooksListModel implements ComboBoxModel
for license details.
,
Serialized FormBooksListModel.CustomListDataListener
Modifier and Type | Field and Description |
---|---|
protected org.crosswire.jsword.book.Book |
current
The currently selected version
|
private static long |
serialVersionUID
Serialization ID
|
books, comparator
listenerList
Constructor and Description |
---|
BooksComboBoxModel()
Basic Constructor
|
BooksComboBoxModel(org.crosswire.jsword.book.BookFilter filter)
Basic Constructor
|
BooksComboBoxModel(org.crosswire.jsword.book.BookFilter filter,
Comparator<org.crosswire.jsword.book.Book> comparator)
Basic Constructor
|
Modifier and Type | Method and Description |
---|---|
org.crosswire.jsword.book.Book |
getSelectedBook()
Get the selected Bible
|
Object |
getSelectedItem() |
protected void |
postCacheData() |
private void |
readObject(ObjectInputStream is)
Serialization support.
|
void |
setSelectedItem(Object selected) |
private void |
tryInitialSelection(org.crosswire.jsword.book.Book book) |
addListDataListener, cacheData, fireContentsChanged, getElementAt, getIndexOf, getSize, removeListDataListener, setFilter
fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, getElementAt, getSize, removeListDataListener
protected transient org.crosswire.jsword.book.Book current
private static final long serialVersionUID
public BooksComboBoxModel()
public BooksComboBoxModel(org.crosswire.jsword.book.BookFilter filter)
public BooksComboBoxModel(org.crosswire.jsword.book.BookFilter filter, Comparator<org.crosswire.jsword.book.Book> comparator)
private void tryInitialSelection(org.crosswire.jsword.book.Book book)
book
- public void setSelectedItem(Object selected)
setSelectedItem
in interface ComboBoxModel
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public org.crosswire.jsword.book.Book getSelectedBook()
protected final void postCacheData()
private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException
is
- IOException
ClassNotFoundException