|
|
Class: ListEntry
Object
|
+--ListEntry
|
+--ModelListEntry
|
+--MultiColListEntry
- Package:
- stx:libwidg2
- Category:
- Views-Support
- Version:
- rev:
1.20
date: 2009/10/16 09:11:08
- user: cg
- file: ListEntry.st directory: libwidg2
- module: stx stc-classLibrary: libwidg2
- Author:
- Claus Gittinger
ListEntry is an abstract superclass for objects which can be used
in place of strings in ListViews or SelectionInListViews.
If you want to create new subclasses, implement (at least) the methods
found in the 'required protocol' category.
ListView
printing & storing
-
printOn: aStream
-
-
printString
-
queries
-
hasIcon
-
-
hasImage
-
-
includes: aCharacter
-
behave like a string when testing
-
size
-
behave like a string when asked for the size
-
species
-
-
string
-
required protocol
-
asString
-
return the receiver as a string (for example, to store it in a file)
** This method raises an error - it must be redefined in concrete classes **
-
displayOn: aGC x: x y: y opaque: opaque
-
display the receiver on a GC
** This method raises an error - it must be redefined in concrete classes **
-
heightOn: aGC
-
return the height of the receiver when displayed in aGC.
Assume the GC's font is taken. If that is not the case in a
particular subclass, this method is to be redefined there.
-
sameStringAndEmphasisAs: aStringOrText
-
** This method raises an error - it must be redefined in concrete classes **
-
widthOn: aGC
-
return the width (in device units) of the receiver when displayed in aGC
** This method raises an error - it must be redefined in concrete classes **
string protocol
-
< aString
-
behave like a string when comparing
-
= aString
-
behave like a string when comparing
-
at: index
-
behave like a string when accessing characters
-
do: aBlock
-
behave like a string when enumerating characters
-
hash
-
return an integer useful for hashing
|