public class BibleComboBoxModel extends AbstractListModel implements ComboBoxModel
for license details.
,
Serialized FormModifier and Type | Class and Description |
---|---|
protected static class |
BibleComboBoxModel.Level
The level of the book combo.
|
Modifier and Type | Field and Description |
---|---|
protected BibleComboBoxModel.Level |
level
Are we a book, chapter or verse selector
|
private static org.slf4j.Logger |
log
The log stream
|
private Object |
selected
What is currently selected?
|
private static long |
serialVersionUID
Serialization ID
|
private BibleComboBoxModelSet |
set
Shared settings
|
private org.crosswire.jsword.versification.Versification |
v11n |
listenerList
Modifier | Constructor and Description |
---|---|
protected |
BibleComboBoxModel(BibleComboBoxModelSet set,
BibleComboBoxModel.Level level)
Simple ctor for choosing verses
|
Modifier and Type | Method and Description |
---|---|
protected void |
fireContentsChanged(Object source,
int index0,
int index1) |
Object |
getElementAt(int index) |
Object |
getSelectedItem() |
int |
getSize() |
private void |
readObject(ObjectInputStream is)
Serialization support.
|
void |
setBook(org.crosswire.jsword.versification.BibleBook book)
Accessor for the book
|
void |
setChapter(int chapter)
Accessor for the chapter
|
void |
setSelectedItem(Object selected) |
void |
setVerse(int verse)
Accessor for the chapter
|
addListDataListener, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
private transient org.crosswire.jsword.versification.Versification v11n
private transient BibleComboBoxModelSet set
private transient Object selected
protected BibleComboBoxModel.Level level
private static final org.slf4j.Logger log
private static final long serialVersionUID
protected BibleComboBoxModel(BibleComboBoxModelSet set, BibleComboBoxModel.Level level)
public void setSelectedItem(Object selected)
setSelectedItem
in interface ComboBoxModel
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public Object getElementAt(int index)
getElementAt
in interface ListModel
public void setBook(org.crosswire.jsword.versification.BibleBook book)
public void setChapter(int chapter)
public void setVerse(int verse)
protected void fireContentsChanged(Object source, int index0, int index1)
fireContentsChanged
in class AbstractListModel
private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException
is
- IOException
ClassNotFoundException