|
||||||||||
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. Position is specified by ITextPieceKeeper and offset.
Constructor Summary | |
---|---|
InsertTextRequest(ITextPieceKeeper source,
String text,
int offset)
Constructor. |
Method Summary | |
---|---|
int |
getOffset()
Returns position in text piece where to insert text. |
String |
getSpecialization()
TODO Kollar ocakavam navrhy na zmenu mena tejto metody, ale getAction sa mi zda byt metuce, lebo od getAction() by som cakal ze vrati nejaku akciu. |
String |
getText()
Returns text to insert. |
Methods inherited from class sk.uniba.euromath.editor.textEditor.requests.editTextRequests.EditTextRequest |
---|
getDestination, getSource, setDestination |
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 source, 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)source
- 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 |