public class PassageEvent extends EventObject
The GNU Lesser General Public License for details.
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
PassageEvent.EventType
Indicates what kind of change happened to a Passage.
|
Modifier and Type | Field and Description |
---|---|
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
|
source
Constructor and Description |
---|
PassageEvent(Object source,
PassageEvent.EventType versesChanged,
Verse lower,
Verse upper)
Constructs a PassageEvent object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getSource, toString
private PassageEvent.EventType type
private Verse lower
private Verse upper
private static final long serialVersionUID
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 rangepublic PassageEvent.EventType getType()
public Verse getLowerIndex()
getUpperIndex()
.public Verse getUpperIndex()
getLowerIndex()
.