|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable
eTextReader.clientInterface.Notation
public class Notation
A class to hold a notation for a document.
Nested Class Summary | |
---|---|
static class |
Notation.AnnotationType
An enum outlining all the possible types of annotations, and allowing access to several properties based on this type. |
static class |
Notation.ICON_LOCATION
An enum that is used by the AnnotationType enum to indicate where the icon for an annotation should be placed |
static class |
Notation.ViewMode
|
Field Summary | |
---|---|
static java.lang.String |
ANNOTATION
Type annotation - generic annotation. |
static java.lang.String |
ANNOTATION_BOOKMARK
Type Annotation Bookmark - Bookmarks that point to annotations. |
static java.lang.String |
BOLD
Type bold - a section of BOLD text |
static java.lang.String |
BOOKMARK
Type bookmark - a reference to a specific point in the text |
static java.lang.String |
CHANGE
Type change - notification of a change. |
static java.lang.String |
COMMENT
Type comment - a general comment. |
static java.lang.String |
DIAGRAM
Type comment - a diagram. |
static java.lang.String |
DISCUSSION
Type comment - a discussion. |
static java.lang.String |
EXAMPLE
Type example - an example. |
static java.lang.String |
EXERCIZE
Type exersize - a practice exersize. |
static java.lang.String |
EXPLANATION
Type explanation - explanation of a concept or answer to a question. |
static java.lang.String |
GLOBAL_BOOKMARK
Type Global Bookmark - Bookmarks set by moderator. |
static java.lang.String |
HIGHLIGHT
Type highlight - a highlighted section of text. |
static java.lang.String |
INLINE
Type inline - annotation between text paragraphs. |
static java.lang.String |
INSTRUCTION
Type instruction - instructions for the professor. |
static java.lang.String |
ITALIC
Type italic - an italicized section of text. |
static java.lang.String |
LAST_POSITION
Type last-position - the last position of the user |
static java.lang.String |
LINK
Type link - a link to another document. |
static java.lang.String |
PROGRAM_REFERENCE
Type program reference - a reference to a java program. |
static java.lang.String |
QUESTION
Type question - a question. |
static java.lang.String |
QUICK_NOTE
Type quick_note - a short note in a pop-up window |
static java.lang.String |
SEE_ALSO
Type see_also - a reference to a related section or document. |
static java.lang.String |
TEXT_NOTE
Type text note - a text-based annotation. |
static java.lang.String |
UNDERLINE
Type underline - an underlined section of text. |
static java.lang.String |
WINDOW
Type window - a separate annotation window. |
Constructor Summary | |
---|---|
Notation()
Create a new, empty notation. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object anotherNotation)
overrides Object.equals so that if two Notations have the same id they are considered equal |
Notation.AnnotationType |
getAnnotationType()
Returns the AnnotationType object associated with this particular notation |
int |
getInt(java.lang.String field)
Return the value of the field as an int. |
java.lang.String |
getString(java.lang.String field)
Return the value of the field as a String. |
java.lang.Object |
getValue(java.lang.String field)
Gets the value of the given field. |
Notation.ViewMode |
getViewMode()
|
boolean |
isDeleteableBy(java.lang.String userName)
Determines whether or not a given user can delete this notation. |
boolean |
isEditableBy(java.lang.String userName)
Determines whether or not a given user can edit this notation |
void |
set(java.lang.String field,
boolean value)
Sets the given field to the given value. |
void |
set(java.lang.String field,
double value)
Sets the given field to the given value. |
void |
set(java.lang.String field,
int value)
Sets the given field to the given value. |
void |
set(java.lang.String field,
java.lang.Object value)
Sets the given field to the given value. |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ANNOTATION
public static final java.lang.String ANNOTATION_BOOKMARK
public static final java.lang.String BOLD
public static final java.lang.String BOOKMARK
public static final java.lang.String CHANGE
public static final java.lang.String COMMENT
public static final java.lang.String DIAGRAM
public static final java.lang.String DISCUSSION
public static final java.lang.String EXAMPLE
public static final java.lang.String EXERCIZE
public static final java.lang.String EXPLANATION
public static final java.lang.String HIGHLIGHT
public static final java.lang.String GLOBAL_BOOKMARK
public static final java.lang.String INLINE
public static final java.lang.String INSTRUCTION
public static final java.lang.String ITALIC
public static final java.lang.String LINK
public static final java.lang.String PROGRAM_REFERENCE
public static final java.lang.String QUESTION
public static final java.lang.String SEE_ALSO
public static final java.lang.String UNDERLINE
public static final java.lang.String QUICK_NOTE
public static final java.lang.String LAST_POSITION
public static final java.lang.String TEXT_NOTE
public static final java.lang.String WINDOW
Constructor Detail |
---|
public Notation()
Method Detail |
---|
public void set(java.lang.String field, boolean value)
field
- The field to set.value
- The value to set the field to.public void set(java.lang.String field, int value)
field
- The field to set.value
- The value to set the field to.public void set(java.lang.String field, double value)
field
- The field to set.value
- The value to set the field to.public void set(java.lang.String field, java.lang.Object value)
field
- The field to set.value
- The value to set the field to.public java.lang.Object getValue(java.lang.String field)
field
- The field to get.
public java.lang.String getString(java.lang.String field)
field
- The field to get.
public int getInt(java.lang.String field)
field
- The field to get.
public boolean equals(java.lang.Object anotherNotation)
equals
in interface java.util.Map
equals
in class java.util.Hashtable
public Notation.AnnotationType getAnnotationType()
public Notation.ViewMode getViewMode()
public boolean isEditableBy(java.lang.String userName)
userName
- the user name who would like to be able to edit this notation
public boolean isDeleteableBy(java.lang.String userName)
userName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |