|
||||||||||
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
A ComboBoxModel for selecting book/chapter/verse.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormField Summary | |
---|---|
protected int |
level
Are we a book, chapter or verse selector |
static int |
LEVEL_BOOK
For when the we are a book level combo |
static int |
LEVEL_CHAPTER
For when the we are a chapter level combo |
static int |
LEVEL_VERSE
For when the we are a verse level combo |
private static Logger |
log
The log stream |
private Object |
selected
What is currently selected? |
private static long |
serialVersionUID
Serialization ID |
private BibleComboBoxModelSet |
set
Shared settings |
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
protected |
BibleComboBoxModel(BibleComboBoxModelSet set,
int 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()
|
void |
setBook(int 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 static final Logger log
public static final int LEVEL_BOOK
public static final int LEVEL_CHAPTER
public static final int LEVEL_VERSE
private transient BibleComboBoxModelSet set
private transient Object selected
protected int level
private static final long serialVersionUID
Constructor Detail |
---|
protected BibleComboBoxModel(BibleComboBoxModelSet set, int 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(int book)
public void setChapter(int chapter)
public void setVerse(int verse)
protected void fireContentsChanged(Object source, int index0, int index1)
fireContentsChanged
in class AbstractListModel
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |