|
||||||||||
| 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.,
Serialized Form| Field Summary | |
|---|---|
private List<org.crosswire.jsword.passage.Key> |
ranges
The list of ranges in the passage. |
private org.crosswire.jsword.passage.Passage |
ref
The Passage that we are modeling |
private org.crosswire.jsword.passage.RestrictionType |
restrict
If we are modeling in groups, do we break at chapter/book boundaries |
private static long |
serialVersionUID
Serialization ID |
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
RangeListModel(org.crosswire.jsword.passage.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. |
org.crosswire.jsword.passage.Passage |
getPassage()
Accessor for the current passage |
org.crosswire.jsword.passage.RestrictionType |
getRestriction()
Return the current Range Restriction |
int |
getSize()
Returns the length of the list. |
private void |
refresh()
|
void |
setPassage(org.crosswire.jsword.passage.Passage newRef)
Accessor for the current passage |
void |
setRestriction(org.crosswire.jsword.passage.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 org.crosswire.jsword.passage.Passage ref
private List<org.crosswire.jsword.passage.Key> ranges
private org.crosswire.jsword.passage.RestrictionType restrict
private static final long serialVersionUID
| Constructor Detail |
|---|
public RangeListModel(org.crosswire.jsword.passage.RestrictionType theRestriction)
theRestriction - Do we chop at chapter boundaries| Method Detail |
|---|
public void setRestriction(org.crosswire.jsword.passage.RestrictionType restrict)
RestrictType.NONE, or RestrictType.CHAPTER
restrict - The new restrictionspublic org.crosswire.jsword.passage.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(org.crosswire.jsword.passage.Passage newRef)
public org.crosswire.jsword.passage.Passage getPassage()
private void refresh()
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||