|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hipipal.texteditor.undo.TextChangeDelete
public class TextChangeDelete
Field Summary |
---|
Constructor Summary | |
---|---|
TextChangeDelete(java.lang.CharSequence seq,
int start)
|
Method Summary | |
---|---|
void |
append(java.lang.CharSequence seq)
Method is deprecated, you should use the canMergeXXX methods instead |
boolean |
canMergeChangeAfter(java.lang.CharSequence s,
int start,
int before,
int count)
A change to the text s has been made, where the count characters starting at start have replaced the substring of length before If possible, this change is merged in this TextChange |
boolean |
canMergeChangeBefore(java.lang.CharSequence s,
int start,
int count,
int after)
A change to the text s will be made, where the count characters starting at start will be replaced by after characters If possible, this change is merged in this TextChange |
int |
getCaret()
Method is deprecated, you should use the canMergeXXX methods instead |
java.lang.String |
toString()
|
int |
undo(android.text.Editable s)
Undo this change |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextChangeDelete(java.lang.CharSequence seq, int start)
seq
- the sequence being deletedstart
- the start indexMethod Detail |
---|
public int undo(android.text.Editable s)
TextChange
undo
in interface TextChange
s
- the editable object on which the undo is done
TextChange.undo(android.text.Editable)
public int getCaret()
TextChange
getCaret
in interface TextChange
TextChange.getCaret()
public void append(java.lang.CharSequence seq)
TextChange
append
in interface TextChange
seq
- the sequence being appended to this TextChange
TextChange.append(java.lang.CharSequence)
public boolean canMergeChangeBefore(java.lang.CharSequence s, int start, int count, int after)
TextChange
TextChange
canMergeChangeBefore
in interface TextChange
s
- the sequence being changedstart
- the start indexcount
- the number of characters that will changeafter
- the number of characters that will replace the old ones
TextChange
TextChange.canMergeChangeAfter(java.lang.CharSequence,
int, int, int)
public boolean canMergeChangeAfter(java.lang.CharSequence s, int start, int before, int count)
TextChange
TextChange
canMergeChangeAfter
in interface TextChange
s
- the sequence being changedstart
- the start indexbefore
- the number of character that were replacedcount
- the number of characters that will change
TextChange
TextChange.canMergeChangeBefore(java.lang.CharSequence,
int, int, int)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |