| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.obby4j.DocumentContents
public class DocumentContents
Represents the contents of a document and provides state management for sync and edit processes.
| Nested Class Summary | |
|---|---|
static class | 
DocumentContents.State
The states a document's content can be in.  | 
| Constructor Summary | |
|---|---|
DocumentContents(Document document)
Creates an initially empty document content instance.  | 
|
| Method Summary | |
|---|---|
 DocumentContents.State | 
getState()
 | 
 java.lang.String | 
getString()
 | 
 void | 
recordDelete(int pos,
             int length)
TODO javadoc  | 
 void | 
recordInsert(java.lang.String chunk,
             int pos)
TODO javadoc  | 
 java.lang.String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public DocumentContents(Document document)
document - the document that contains the content| Method Detail | 
|---|
public DocumentContents.State getState()
DocumentContents.Statepublic java.lang.String getString()
public void recordDelete(int pos,
                         int length)
pos - length - 
public void recordInsert(java.lang.String chunk,
                         int pos)
chunk - pos - public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||