Package org.luwrain.controls
Class UndoLines
java.lang.Object
org.luwrain.controls.UndoLines
- All Implemented Interfaces:
Lines
,MarkedLines
,MutableLines
,MutableMarkedLines
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static final class
protected static class
protected static final class
Nested classes/interfaces inherited from interface org.luwrain.core.MutableLines
MutableLines.Updating
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<UndoLines.Command>
protected final MutableLines
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
getLine
(int index) int
getLineMarks
(int index) String[]
getLines()
void
insertLine
(int index, String line) void
removeLine
(int index) protected void
saveCommand
(UndoLines.Command command) void
void
setLineMarks
(int index, LineMarks lineMarks) void
void
update
(MutableLines.Updating updating)
-
Field Details
-
lines
-
commands
-
-
Constructor Details
-
UndoLines
-
-
Method Details
-
getLineCount
public int getLineCount()- Specified by:
getLineCount
in interfaceLines
-
getLine
-
update
- Specified by:
update
in interfaceMutableLines
-
getLines
- Specified by:
getLines
in interfaceMutableLines
-
setLines
- Specified by:
setLines
in interfaceMutableLines
-
addLine
- Specified by:
addLine
in interfaceMutableLines
-
insertLine
- Specified by:
insertLine
in interfaceMutableLines
-
removeLine
public void removeLine(int index) - Specified by:
removeLine
in interfaceMutableLines
-
setLine
- Specified by:
setLine
in interfaceMutableLines
-
clear
public void clear()- Specified by:
clear
in interfaceMutableLines
-
getLineMarks
- Specified by:
getLineMarks
in interfaceMarkedLines
-
setLineMarks
- Specified by:
setLineMarks
in interfaceMutableMarkedLines
-
saveCommand
-