|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractListModel
org.crosswire.bibledesktop.book.BibleComboBoxModel
public class BibleComboBoxModel
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormNested Class Summary | |
---|---|
protected static class |
BibleComboBoxModel.Level
The level of the book combo. |
Field Summary | |
---|---|
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 Versification |
v11n
|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
protected |
BibleComboBoxModel(BibleComboBoxModelSet set,
BibleComboBoxModel.Level level)
Simple ctor for choosing verses |
Method Summary | |
---|---|
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(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 |
Methods inherited from class javax.swing.AbstractListModel |
---|
addListDataListener, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.ListModel |
---|
addListDataListener, removeListDataListener |
Field Detail |
---|
private transient 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
Constructor Detail |
---|
protected BibleComboBoxModel(BibleComboBoxModelSet set, BibleComboBoxModel.Level level)
Method Detail |
---|
public void setSelectedItem(Object selected)
setSelectedItem
in interface ComboBoxModel
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public int getSize()
getSize
in interface ListModel
public Object getElementAt(int index)
getElementAt
in interface ListModel
public void setBook(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
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |