#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Fri, 01 Mar 2019 22:04:20 +0100
changeset 6020 2594f0f2752c
parent 6019 3f48805b8cac
child 6021 15bfa1dd30de
#REFACTORING by cg class: ListModelView added: #listAt: #numberOfLines
ListModelView.st
--- a/ListModelView.st	Fri Mar 01 19:53:55 2019 +0100
+++ b/ListModelView.st	Fri Mar 01 22:04:20 2019 +0100
@@ -389,6 +389,14 @@
     "returns the last list entry
     "
     ^ list last
+!
+
+listAt:anIndex
+    "for protocol compatibility with SelectionInListView"
+
+    ^ self at:anIndex
+
+    "Created: / 01-03-2019 / 20:11:00 / Claus Gittinger"
 ! !
 
 !ListModelView methodsFor:'accessing-look'!
@@ -1483,6 +1491,15 @@
     ^ false
 !
 
+numberOfLines
+    "return the number of lines the text has
+     (protocol compat. with SelectionInListView)"
+
+    ^ self size
+
+    "Created: / 01-03-2019 / 19:29:20 / Claus Gittinger"
+!
+
 size
     "returns the number of list entries
     "