ListView.st
changeset 2182 fb9bc638123a
parent 2181 2b2351d0c0c4
child 2188 ef616e3ac785
equal deleted inserted replaced
2181:2b2351d0c0c4 2182:fb9bc638123a
   586 add:aString
   586 add:aString
   587     "add a line and redisplay"
   587     "add a line and redisplay"
   588 
   588 
   589     list add:aString.
   589     list add:aString.
   590     includesNonStrings ifFalse:[
   590     includesNonStrings ifFalse:[
   591 	includesNonStrings := (aString notNil and:[aString isString not]).
   591         includesNonStrings := (aString notNil and:[aString isString not]).
   592 "/        includesNonStrings ifTrue:[self getFontParameters].
   592 "/        includesNonStrings ifTrue:[self getFontParameters].
   593     ].
   593     ].
   594     shown ifTrue:[
   594     shown ifTrue:[
   595 	self redrawLine:(self size).
   595         self redrawLine:(self size).
   596 	self contentsChanged.             "recompute scrollbars"
   596     ].
   597     ]
   597     self contentsChanged.             "recompute scrollbars"
   598 
   598 
   599     "Modified: 22.10.1996 / 23:18:47 / cg"
   599     "Modified: 22.10.1996 / 23:18:47 / cg"
   600 !
   600 !
   601 
   601 
   602 add:aString beforeIndex:index
   602 add:aString beforeIndex:index
   603     "add a line and redisplay"
   603     "add a line and redisplay"
   604 
   604 
   605     list isNil ifTrue:[list := OrderedCollection new].
   605     list isNil ifTrue:[list := OrderedCollection new].
   606     list add:aString beforeIndex:index.
   606     list add:aString beforeIndex:index.
   607     includesNonStrings ifFalse:[
   607     includesNonStrings ifFalse:[
   608 	includesNonStrings := (aString notNil and:[aString isString not]).
   608         includesNonStrings := (aString notNil and:[aString isString not]).
   609 "/        includesNonStrings ifTrue:[self getFontParameters].
   609 "/        includesNonStrings ifTrue:[self getFontParameters].
   610     ].
   610     ].
   611     shown ifTrue:[
   611     shown ifTrue:[
   612 	self redrawFromLine:index.
   612         self redrawFromLine:index.
   613 	self contentsChanged.             "recompute scrollbars"
   613     ].
   614     ]
   614     self contentsChanged.             "recompute scrollbars"
   615 
   615 
   616     "Modified: 22.10.1996 / 23:18:53 / cg"
   616     "Modified: 22.10.1996 / 23:18:53 / cg"
   617 !
   617 !
   618 
   618 
   619 at:lineNr
   619 at:lineNr
  4042 ! !
  4042 ! !
  4043 
  4043 
  4044 !ListView class methodsFor:'documentation'!
  4044 !ListView class methodsFor:'documentation'!
  4045 
  4045 
  4046 version
  4046 version
  4047     ^ '$Header: /cvs/stx/stx/libwidg/ListView.st,v 1.222 2000-04-18 10:10:59 cg Exp $'
  4047     ^ '$Header: /cvs/stx/stx/libwidg/ListView.st,v 1.223 2000-04-18 14:37:23 cg Exp $'
  4048 ! !
  4048 ! !