org.crosswire.bibledesktop.book
Class BibleComboBoxModelSet

java.lang.Object
  extended by org.crosswire.bibledesktop.book.BibleComboBoxModelSet

public class BibleComboBoxModelSet
extends Object

A set of correctly constructed and linked BibleComboBoxModels.

Author:
Joe Walker [joe at eireneh dot com]
See Also:
for license details. The copyright to this program is held by it's authors.

Nested Class Summary
private  class BibleComboBoxModelSet.CustomItemListener
          For when a selection is made
 
Field Summary
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  Verse verse
           
 
Constructor Summary
BibleComboBoxModelSet()
           
 
Method Summary
 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.
 Verse getVerse()
           
 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(Verse newverse)
          Set the combo-boxes to a new verse
 void setVerseComboBox(JComboBox cboVerse)
          The verse combo box
protected  void setViewedVerse(Verse newverse)
          Sets the verse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verse

private Verse verse

cboBook

protected JComboBox cboBook

cboChapter

protected JComboBox cboChapter

cboVerse

private JComboBox cboVerse

mdlBook

protected BibleComboBoxModel mdlBook

mdlChapter

protected BibleComboBoxModel mdlChapter

mdlVerse

protected BibleComboBoxModel mdlVerse

listeners

protected EventListenerList listeners

cil

private ItemListener cil
Constructor Detail

BibleComboBoxModelSet

public BibleComboBoxModelSet()
Method Detail

setBookComboBox

public void setBookComboBox(JComboBox cboBook)
The book combo box


setChapterComboBox

public void setChapterComboBox(JComboBox cboChapter)
The chapter combo box


setVerseComboBox

public void setVerseComboBox(JComboBox cboVerse)
The verse combo box


getVerse

public Verse getVerse()
Returns:
Verse

setViewedVerse

protected void setViewedVerse(Verse newverse)
Sets the verse.

Parameters:
newverse - The verse to set

setVerse

public void setVerse(Verse newverse)
Set the combo-boxes to a new verse


addActionListener

public void addActionListener(ActionListener li)
Add a listener to the list that's notified each time a change to the data model occurs.

Parameters:
li - the ListDataListener

removeActionListener

public void removeActionListener(ActionListener li)
Remove a listener from the list that's notified each time a change to the data model occurs.

Parameters:
li - the ListDataListener

fireContentsChanged

protected void fireContentsChanged()
Called after the verse changes.

See Also:
EventListenerList, DefaultListModel

Copyright ? 2003-2006