|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.crosswire.jsword.passage.PassageEvent
public class PassageEvent
Defines an event that encapsulates changes to a Passage. For many operations on a Passage, calculating the extent of the changes is hard. In these cases we default the range to Gen 1:1-Rev 22:21
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormField Summary | |
---|---|
private Verse |
lower
The lowest numbered element to have changed |
private static long |
serialVersionUID
Serialization ID |
private int |
type
The type of change |
private Verse |
upper
The highest numbered element to have changed |
static Verse |
VERSE_HIGHEST
When the upper verse is null |
static Verse |
VERSE_LOWEST
When the lower verse is null |
static int |
VERSES_ADDED
Identifies the addition of one or more contiguous items to the list |
static int |
VERSES_CHANGED
Identifies one or more changes in the lists contents. |
static int |
VERSES_REMOVED
Identifies the removal of one or more contiguous items from the list |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
PassageEvent(Object source,
int type,
Verse lower,
Verse upper)
Constructs a PassageEvent object. |
Method Summary | |
---|---|
Verse |
getLowerIndex()
Returns the lower index of the range. |
int |
getType()
Returns the event type. |
Verse |
getUpperIndex()
Returns the upper index of the range. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int VERSES_CHANGED
public static final int VERSES_ADDED
public static final int VERSES_REMOVED
public static final Verse VERSE_LOWEST
public static final Verse VERSE_HIGHEST
private int type
private Verse lower
private Verse upper
private static final long serialVersionUID
Constructor Detail |
---|
public PassageEvent(Object source, int type, Verse lower, Verse upper)
source
- the source Object (typically this
)type
- an int specifying VERSES_CHANGED, VERSES_ADDED, VERSES_REMOVEDlower
- an int specifying the bottom of a rangeupper
- an int specifying the top of a rangeMethod Detail |
---|
public int getType()
public Verse getLowerIndex()
getUpperIndex()
.
public Verse getUpperIndex()
getLowerIndex()
.
|
Copyright ยจ 2003-2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |