|
||||||||||
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 the whole Bible.
The GNU Lesser General Public License for details.
,
Serialized FormNested Class Summary | |
---|---|
static class |
PassageEvent.EventType
Indicates what kind of change happened to a Passage. |
Field Summary | |
---|---|
private Verse |
lower
The lowest numbered element to have changed |
private static long |
serialVersionUID
Serialization ID |
private PassageEvent.EventType |
type
The type of change |
private Verse |
upper
The highest numbered element to have changed |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
PassageEvent(Object source,
PassageEvent.EventType versesChanged,
Verse lower,
Verse upper)
Constructs a PassageEvent object. |
Method Summary | |
---|---|
Verse |
getLowerIndex()
Returns the lower index of the range. |
PassageEvent.EventType |
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 |
---|
private PassageEvent.EventType type
private Verse lower
private Verse upper
private static final long serialVersionUID
Constructor Detail |
---|
public PassageEvent(Object source, PassageEvent.EventType versesChanged, Verse lower, Verse upper)
source
- the source Object (typically this
)versesChanged
- 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 PassageEvent.EventType getType()
public Verse getLowerIndex()
getUpperIndex()
.
public Verse getUpperIndex()
getLowerIndex()
.
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |