Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
InsertOperation (int position, String text) | |
InsertOperation (int position, String text, int origin) | |
InsertOperation (int position, String text, int origin, boolean isUndo) | |
int | getPosition () |
String | getText () |
int | getTextLength () |
int | getOrigin () |
String | toString () |
boolean | equals (Object obj) |
int | hashCode () |
List< TextEditActivity > | toTextEdit (SPath path, User source) |
List< ITextOperation > | getTextOperations () |
ITextOperation | invert () |
The InsertOperation is used to hold a text together with its position index. The text is to be inserted in the document model.
de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.InsertOperation | ( | int | position, |
String | text | ||
) |
Syntactic sugar for creating a new InsertOperation with the origin set to the given position.
position | the position in the document |
text | the text to be inserted |
de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.InsertOperation | ( | int | position, |
String | text, | ||
int | origin | ||
) |
position | the position in the document |
text | the text to be inserted |
origin | the origin position of this insert operation |
de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.InsertOperation | ( | int | position, |
String | text, | ||
int | origin, | ||
boolean | isUndo | ||
) |
position | the position in the document |
text | the text to be inserted |
origin | the origin position of this insert operation |
isUndo | flag to indicate an undo operation |
boolean de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.equals | ( | Object | obj | ) |
int de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.getOrigin | ( | ) |
int de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.getPosition | ( | ) |
Implements de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.ITextOperation.
String de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.getText | ( | ) |
Implements de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.ITextOperation.
int de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.getTextLength | ( | ) |
Implements de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.ITextOperation.
List<ITextOperation> de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.getTextOperations | ( | ) |
Returns a list of all operations represented by this operation that perform text changes in the order they should be executed. This method can return an empty list (for NoOperations for instance).
Implements de.fu_berlin.inf.dpp.concurrent.jupiter.Operation.
int de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.hashCode | ( | ) |
ITextOperation de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.invert | ( | ) |
Implements de.fu_berlin.inf.dpp.concurrent.jupiter.Operation.
String de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.toString | ( | ) |
List<TextEditActivity> de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.InsertOperation.toTextEdit | ( | SPath | path, |
User | source | ||
) |
Returns a sequence of TextEditActivitys which represent this operation if applied in order to the editor denoted by the given path by the user identified by the given source.
Implements de.fu_berlin.inf.dpp.concurrent.jupiter.Operation.