public class BibleComboBoxModelSet extends Object implements Serializable
for license details.
,
Serialized FormModifier and Type | Class and Description |
---|---|
(package private) class |
BibleComboBoxModelSet.CustomItemListener
For when a selection is made
|
Modifier and Type | Field and Description |
---|---|
protected JComboBox |
cboBook |
protected JComboBox |
cboChapter |
private JComboBox |
cboVerse |
private ItemListener |
cil |
protected EventListenerList |
listeners |
protected BibleComboBoxModel |
mdlBook |
protected BibleComboBoxModel |
mdlChapter |
protected BibleComboBoxModel |
mdlVerse |
private static long |
serialVersionUID
Serialization ID
|
private org.crosswire.jsword.passage.Verse |
verse |
Constructor and Description |
---|
BibleComboBoxModelSet(JComboBox books,
JComboBox chapters,
JComboBox verses) |
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener li)
Add a listener to the list that's notified each time a change to the data
model occurs.
|
protected void |
fireContentsChanged()
Called after the verse changes.
|
org.crosswire.jsword.passage.Verse |
getVerse() |
private void |
readObject(ObjectInputStream is)
Serialization support.
|
void |
removeActionListener(ActionListener li)
Remove a listener from the list that's notified each time a change to the
data model occurs.
|
void |
setBookComboBox(JComboBox cboBook)
The book combo box
|
void |
setChapterComboBox(JComboBox cboChapter)
The chapter combo box
|
void |
setVerse(org.crosswire.jsword.passage.Verse newverse)
Set the combo-boxes to a new verse
|
void |
setVerseComboBox(JComboBox cboVerse)
The verse combo box
|
private org.crosswire.jsword.passage.Verse verse
protected JComboBox cboBook
protected JComboBox cboChapter
private JComboBox cboVerse
protected BibleComboBoxModel mdlBook
protected BibleComboBoxModel mdlChapter
protected BibleComboBoxModel mdlVerse
protected EventListenerList listeners
private transient ItemListener cil
private static final long serialVersionUID
public final void setBookComboBox(JComboBox cboBook)
public final void setChapterComboBox(JComboBox cboChapter)
public final void setVerseComboBox(JComboBox cboVerse)
public org.crosswire.jsword.passage.Verse getVerse()
public void setVerse(org.crosswire.jsword.passage.Verse newverse)
public void addActionListener(ActionListener li)
li
- the ListDataListenerpublic void removeActionListener(ActionListener li)
li
- the ListDataListenerprotected void fireContentsChanged()
EventListenerList
,
DefaultListModel
private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException
is
- IOException
ClassNotFoundException