org.crosswire.bibledesktop.book
Class BooksComboBoxModel
java.lang.Object
javax.swing.AbstractListModel
org.crosswire.bibledesktop.book.BooksListModel
org.crosswire.bibledesktop.book.BooksComboBoxModel
- All Implemented Interfaces:
- Serializable, ComboBoxModel, ListModel
public class BooksComboBoxModel
- extends BooksListModel
- implements ComboBoxModel
The BibleModels class implements a number of swing DataModels and gives
access to the list of current Bibles.
- Author:
- Joe Walker [joe at eireneh dot com]
- See Also:
for license details.
The copyright to this program is held by it's authors.
,
Serialized Form
Field Summary |
protected org.crosswire.jsword.book.Book |
current
The currently selected version |
private static long |
serialVersionUID
Serialization ID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
current
protected transient org.crosswire.jsword.book.Book current
- The currently selected version
serialVersionUID
private static final long serialVersionUID
- Serialization ID
- See Also:
- Constant Field Values
BooksComboBoxModel
public BooksComboBoxModel()
- Basic Constructor
BooksComboBoxModel
public BooksComboBoxModel(org.crosswire.jsword.book.BookFilter filter)
- Basic Constructor
BooksComboBoxModel
public BooksComboBoxModel(org.crosswire.jsword.book.BookFilter filter,
Comparator<org.crosswire.jsword.book.Book> comparator)
- Basic Constructor
tryInitialSelection
private void tryInitialSelection(org.crosswire.jsword.book.Book book)
- Parameters:
book
-
setSelectedItem
public void setSelectedItem(Object selected)
- Specified by:
setSelectedItem
in interface ComboBoxModel
getSelectedItem
public Object getSelectedItem()
- Specified by:
getSelectedItem
in interface ComboBoxModel
getSelectedBook
public org.crosswire.jsword.book.Book getSelectedBook()
- Get the selected Bible
- Returns:
- A Bible
postCacheData
protected final void postCacheData()
readObject
private void readObject(ObjectInputStream is)
throws IOException,
ClassNotFoundException
- Serialization support.
- Parameters:
is
-
- Throws:
IOException
ClassNotFoundException