Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
DeleteOperation (int position, String text) | |
int | getPosition () |
int | getTextLength () |
String | getText () |
String | toString () |
boolean | equals (Object obj) |
int | hashCode () |
List< TextEditActivity > | toTextEdit (SPath path, User source) |
List< ITextOperation > | getTextOperations () |
ITextOperation | invert () |
The DeleteOperation is used to hold a text together with its position that is to be deleted in the document model.
de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.DeleteOperation | ( | int | position, |
String | text | ||
) |
text | the text to be deleted |
boolean de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.equals | ( | Object | obj | ) |
int de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.getPosition | ( | ) |
Implements de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.ITextOperation.
String de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.getText | ( | ) |
Returns the text to be deleted.
Implements de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.ITextOperation.
int de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.getTextLength | ( | ) |
Implements de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.ITextOperation.
List<ITextOperation> de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.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.DeleteOperation.hashCode | ( | ) |
ITextOperation de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.invert | ( | ) |
Implements de.fu_berlin.inf.dpp.concurrent.jupiter.Operation.
String de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.toString | ( | ) |
List<TextEditActivity> de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.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.