|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
eTextReader.NotationEvent
public class NotationEvent
A class to hold a notation for a document.
NotationEventListener
,
Serialized FormField Summary | |
---|---|
private javax.swing.text.Element |
element
|
private java.lang.String |
end
|
static int |
ERROR_HYPERLINK_DISABLED
The hyperlink_disabled error type. |
static int |
ERROR_INVALID_TYPE
The invalid notation type error. |
static int |
ERROR_INVALID_URL
The invalid URL error type. |
static int |
ERROR_NONE
The null error type. |
static int |
ERROR_PAGE_NOT_FOUND
The page not found error type. |
static int |
ERROR_SAME_PAGE
The same page error. |
private int |
errorCode
|
static int |
EVENT_ERROR
The error event type. |
static int |
EVENT_NONE
The NULL event type |
static int |
EVENT_NOTATION_ENTERED
The notation entered event type. |
static int |
EVENT_NOTATION_EXITED
The notation exited event type. |
static int |
EVENT_NOTATION_SELECTED
The notation selected event type. |
static int |
EVENT_PAGE_CHANGE
The page change event type. |
private int |
eventType
|
private java.lang.Exception |
exception
|
private int |
id
|
private java.lang.String |
newPage
|
private Notation |
notation
|
static int |
NOTATION_DELETED
Indicates that the given annotation has been deleted from the content pane |
private java.lang.String |
notationBody
|
private java.lang.String |
notationType
|
private java.lang.String |
notationViewMode
|
private java.lang.String |
oldPage
|
private java.lang.Object |
parameter
|
private java.lang.String |
start
|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
private |
NotationEvent(java.lang.Object source)
|
|
NotationEvent(java.lang.Object source,
javax.swing.text.Element element,
int eventType,
Notation notation,
java.lang.String oldPage,
java.lang.String newPage,
int errorCode)
Constructs a new NotationEvent object. |
|
NotationEvent(java.lang.Object source,
javax.swing.text.Element element,
int eventType,
Notation notation,
java.lang.String oldPage,
java.lang.String newPage,
java.lang.Object parameter,
int errorCode,
java.lang.Exception exception)
Constructs a new NotationEvent object. |
|
NotationEvent(java.lang.Object source,
int eventType,
java.lang.String oldPage,
java.lang.String newPage,
int errorCode)
|
|
NotationEvent(java.lang.Object source,
int eventType,
java.lang.String oldPage,
java.lang.String newPage,
int errorCode,
java.lang.Exception exception)
|
Method Summary | |
---|---|
javax.swing.text.Element |
getElement()
|
java.lang.String |
getEnd()
Get the ending address |
int |
getErrorCode()
Get the error type |
int |
getEventType()
Get the event type |
java.lang.Exception |
getException()
Get the embedded exception |
int |
getId()
Get the notation id |
java.lang.String |
getNewPage()
Get the new page |
Notation |
getNotation()
|
java.lang.String |
getNotationBody()
Get the notation body |
java.lang.String |
getNotationType()
Get the notation type |
java.lang.String |
getNotationViewMode()
Get the notation view mode |
java.lang.String |
getOldPage()
Get the old page |
java.lang.Object |
getParameter()
|
java.lang.String |
getStart()
Get the starting address |
void |
setNewPage(java.lang.String newPage)
|
void |
setOldPage(java.lang.String oldPage)
The following two methods exist to allow the URL's to be replaced by the Browser class when dealing with discussions, as the browser just passes a NotationEvent to the DiscussionWindow when it is created, and Browser needs to edit the URL's based on the book they came from |
void |
setParameter(java.lang.Object parameter)
|
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 int EVENT_NONE
public static int EVENT_NOTATION_SELECTED
public static int EVENT_NOTATION_ENTERED
public static int EVENT_NOTATION_EXITED
public static int EVENT_PAGE_CHANGE
public static int EVENT_ERROR
public static final int NOTATION_DELETED
public static int ERROR_NONE
public static int ERROR_PAGE_NOT_FOUND
public static int ERROR_INVALID_URL
public static int ERROR_HYPERLINK_DISABLED
public static int ERROR_INVALID_TYPE
loadNotationList
function (which does type checking)
with a type field that cannot be displayed by the ContentPane.
public static int ERROR_SAME_PAGE
private javax.swing.text.Element element
private int eventType
private Notation notation
private int id
private java.lang.String start
private java.lang.String end
private java.lang.String oldPage
private java.lang.String newPage
private java.lang.String notationType
private java.lang.String notationViewMode
private java.lang.String notationBody
private int errorCode
private java.lang.Exception exception
private java.lang.Object parameter
Constructor Detail |
---|
private NotationEvent(java.lang.Object source)
public NotationEvent(java.lang.Object source, javax.swing.text.Element element, int eventType, Notation notation, java.lang.String oldPage, java.lang.String newPage, int errorCode)
source
- the source of this eventeventType
- the event type of this eventoldPage
- the old page, or the current page if there was no changenewPage
- the new page, if the page changed. If there was an error,errorCode
- indicates any error that occuredpublic NotationEvent(java.lang.Object source, int eventType, java.lang.String oldPage, java.lang.String newPage, int errorCode, java.lang.Exception exception)
public NotationEvent(java.lang.Object source, int eventType, java.lang.String oldPage, java.lang.String newPage, int errorCode)
public NotationEvent(java.lang.Object source, javax.swing.text.Element element, int eventType, Notation notation, java.lang.String oldPage, java.lang.String newPage, java.lang.Object parameter, int errorCode, java.lang.Exception exception)
source
- the source of this eventeventType
- the event type of this eventid
- the id of the notation that was selectedstart
- the starting address of the notation that was selectedend
- the ending address of the notation that was selectedoldPage
- the old page, or the current page if there was no changenewPage
- the new page, if the page changed. If there was an error,notationType
- the type of the notation involved in the eventnotationViewMode
- the viewMode of the notation involved in the eventnotationBody
- the text of the notation involved in the event. This
usually should only be present in a quick_note, to avoid fetching
from the database.parameter
- An arbitrary object that can be used by different types of
annotations to give more information about the eventerrorCode
- indicates any error that occuredexception
- any embedded exception that caused this event to be
thrownMethod Detail |
---|
public int getEventType()
public int getId()
public java.lang.String getStart()
public java.lang.String getEnd()
public java.lang.String getOldPage()
public java.lang.String getNewPage()
public java.lang.String getNotationType()
public java.lang.String getNotationViewMode()
public java.lang.String getNotationBody()
public int getErrorCode()
public java.lang.Exception getException()
public void setOldPage(java.lang.String oldPage)
public void setNewPage(java.lang.String newPage)
public javax.swing.text.Element getElement()
public java.lang.Object getParameter()
public void setParameter(java.lang.Object parameter)
public Notation getNotation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |