|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractListModel
org.crosswire.bibledesktop.passage.RangeListModel
public class RangeListModel
The RangeListModel class gives access to a Passage as a list of ranges via a ListModel.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormField Summary | |
---|---|
private List |
ranges
The list of ranges in the passage. |
private Passage |
ref
The Passage that we are modelling |
private RestrictionType |
restrict
If we are modelling in groups, do we break at chapter/book boundries |
private static long |
serialVersionUID
Serialization ID |
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
RangeListModel(RestrictionType theRestriction)
Create a RangeListModel specifying whether to list the ranges bounded by Chapter or not at all. |
Method Summary | |
---|---|
Object |
getElementAt(int index)
Returns the value at the specified index. |
Passage |
getPassage()
Accessor for the current passage |
RestrictionType |
getRestriction()
Return the current Range Restriction |
int |
getSize()
Returns the length of the list. |
private void |
refresh()
|
void |
setPassage(Passage newRef)
Accessor for the current passage |
void |
setRestriction(RestrictionType restrict)
Change the restrictions we are using. |
Methods inherited from class javax.swing.AbstractListModel |
---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Passage ref
private List ranges
private RestrictionType restrict
private static final long serialVersionUID
Constructor Detail |
---|
public RangeListModel(RestrictionType theRestriction)
theRestriction
- Do we chop at chapter boundriesMethod Detail |
---|
public void setRestriction(RestrictionType restrict)
RestrictType.NONE
, or
RestrictType.CHAPTER
restrict
- The new restrictionspublic RestrictionType getRestriction()
public int getSize()
public Object getElementAt(int index)
index
- The index (based at 0) of the element to fetch
public final void setPassage(Passage newRef)
public Passage getPassage()
private void refresh()
|
Copyright ยจ 2003-2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |