Class
zebkit.data.Text
extends <zebkit.data.TextModel> |
<zebkit.data> |
Multi-lines text model implementation
private
|
<Array> | calcLineByOffset ([start], [startOffset], o) |
protected
|
<Integer> | calcLineOffset (line) |
public | void | insertLines (startLine, [lines]) |
public | void | removeLines (start, [size]) |
Inherited methods:
fire(name, [path], [params])
getLine(line)
getLines( )
getTextLength( )
getValue( )
off([eventName], [path], [cb])
on([eventName], [path], cb)
remove(offset, size)
setValue(text)
write(s, offset)
private
<Array>
calcLineByOffset ([start], [startOffset], o )
Detect line by offset starting from the given line and offset. Parameters:
Returns:
<Array>
an array that consists of two elements: detected line index and its offset |
protected
<Integer>
calcLineOffset (line )
Calculate an offset in the text the first character of the specified line. Parameters:
Returns:
<Integer>
an offset |
public
void
insertLines (startLine, [lines] )
Insert number of lines starting from the given starting line Parameters:
|
public
void
removeLines (start, [size] )
Remove number of text lines starting form the specified line Parameters:
|