|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViBuffer
Method Summary | |
---|---|
void |
beginInsertUndo()
start a insert (user typing) ungo group, must be paired |
void |
beginUndo()
start an undo group, must be paired |
ViMark |
createMark()
NEEDSWORK: createMark: attached to this text view, should be in ViBuffer |
void |
deleteChar(int start,
int end)
Delete a bunch of characters |
void |
displayFileInfo(ViTextView tv)
|
void |
endInsertUndo()
end a insert (user typing) ungo group, must be paired |
void |
endUndo()
end an undo group, must be paired |
int |
getColumnNumber(int offset)
|
String |
getDisplayFileName()
|
String |
getDisplayFileNameAndSize()
|
Object |
getDocument()
|
File |
getJavaFile()
|
int |
getLength()
|
int |
getLineCount()
|
int |
getLineEndOffset(int line)
|
int |
getLineEndOffsetFromOffset(int offset)
|
int |
getLineNumber(int offset)
|
TextUtil.MySegment |
getLineSegment(int line)
The associated character iterator is initialized with first(). |
int |
getLineStartOffset(int line)
|
int |
getLineStartOffsetFromOffset(int offset)
|
ViMark |
getMark(int i)
Fetch the lower case mark. |
TextUtil.MySegment |
getSegment(int offset,
int length,
TextUtil.MySegment segment)
Fill the argument segment with the requested text. |
String |
getText(int offset,
int length)
get some text from the document |
int[] |
getVisualSelectBlocks(ViTextView tv,
int startOffset,
int endOffset)
|
void |
insertText(int offset,
String s)
insert text at specified location |
boolean |
isGuarded(int offset)
a portion of a document may be write protected |
boolean |
isInInsertUndo()
between a insert begin and end undo? |
boolean |
isInUndo()
between a begin and an end undo? |
String |
modifyFilename(char option)
|
void |
redo()
redo a change |
void |
reindent(int line,
int count)
platform indent algorithm |
void |
replaceChar(int offset,
char c)
|
void |
replaceString(int start,
int end,
String s)
Replace indicated region with string |
void |
setMarkOffset(ViMark mark,
int offset,
boolean global_mark)
Deprecated. use setMarkPos |
void |
undo()
undo a change |
Method Detail |
---|
Object getDocument()
void replaceString(int start, int end, String s)
void deleteChar(int start, int end)
void insertText(int offset, String s)
String getText(int offset, int length) throws BadLocationException
BadLocationException
void replaceChar(int offset, char c)
void undo()
void redo()
boolean isGuarded(int offset)
void reindent(int line, int count)
int getLineNumber(int offset)
int getColumnNumber(int offset)
int getLineStartOffset(int line)
int getLineEndOffset(int line)
int getLineStartOffsetFromOffset(int offset)
int getLineEndOffsetFromOffset(int offset)
int getLineCount()
int getLength()
TextUtil.MySegment getLineSegment(int line)
TextUtil.MySegment getSegment(int offset, int length, TextUtil.MySegment segment)
int[] getVisualSelectBlocks(ViTextView tv, int startOffset, int endOffset)
void beginUndo()
void endUndo()
boolean isInUndo()
void beginInsertUndo()
void endInsertUndo()
boolean isInInsertUndo()
ViMark getMark(int i)
void setMarkOffset(ViMark mark, int offset, boolean global_mark)
ViMark createMark()
void displayFileInfo(ViTextView tv)
String getDisplayFileName()
String getDisplayFileNameAndSize()
String modifyFilename(char option)
File getJavaFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |