|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.gef.Request sk.uniba.euromath.editor.textEditor.requests.editTextRequests.EditTextRequest sk.uniba.euromath.editor.textEditor.requests.editTextRequests.InsertTextRequest
public class InsertTextRequest
Request to insert text at specified position and to move caret to right position. Position is specified by ITextPieceKeeper and offset.
Constructor Summary | |
---|---|
InsertTextRequest(ITextPieceKeeper keeper,
String text,
int offset)
Constructor. |
Method Summary | |
---|---|
int |
getOffset()
Returns position in text piece where to insert text. |
String |
getSpecialization()
Returns request specialization - unique string. |
String |
getText()
Returns text to insert. |
Methods inherited from class sk.uniba.euromath.editor.textEditor.requests.editTextRequests.EditTextRequest |
---|
getSource |
Methods inherited from class org.eclipse.gef.Request |
---|
getExtendedData, getType, setExtendedData, setType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InsertTextRequest(ITextPieceKeeper keeper, String text, int offset)
text
- to insertoffset
- offset in text piece(ITextPieceKeeper's text) from
where text should be deleted, must be valid (in range
of text piece)keeper
- ITextPieceKeeper where to insert textMethod Detail |
---|
public int getOffset()
public String getText()
public String getSpecialization()
IRequestSpecialization
getSpecialization
in interface IRequestSpecialization
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |