|
Class: ListEntry
Object
|
+--ListEntry
|
+--ListEntry::SeparatingLineEntry
|
+--ModelListEntry
|
+--MultiColListEntry
|
+--Tools::NewSystemBrowser::OwnershipGraph
- Package:
- stx:libwidg2
- Category:
- Views-Support
- Version:
- rev:
1.27
date: 2024/04/09 12:18:53
- user: stefan
- file: ListEntry.st directory: libwidg2
- module: stx stc-classLibrary: libwidg2
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.
copyrightCOPYRIGHT (c) 1995 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
instance creation
-
separatingLineEntry
-
comparing
-
< aString
-
behave like a string when comparing
-
= aString
-
behave like a string when comparing
-
hash
-
return an integer useful for hashing
printing & storing
-
printOn: aStream
-
(comment from inherited method)
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.
The default here is to output the receiver's class name.
BUT: this method is heavily redefined for objects which
can print prettier.
-
printString
-
(comment from inherited method)
return a string for printing the receiver.
Since we now use printOn: as the basic print mechanism,
we have to create a stream and print into it.
queries
-
hasChangeOfEmphasis
-
return true, if the receiver contains non-empty emphasis information
i.e. any non-normal (=emphasized) characters
-
hasIcon
-
-
hasImage
-
-
includes: aCharacter
-
behave like a string when testing
-
size
-
behave like a string when asked for the size
-
species
-
(comment from inherited method)
return a class which is similar to (or the same as) the receiver's class.
This is used to create an appropriate object when creating derived
copies in the collection classes (sometimes redefined).
-
string
-
required protocol
-
asString
-
return the receiver as a string (for example, to store it in a file)
** This method must be redefined in concrete classes (subclassResponsibility) **
-
displayOn: aGC x: x y: y opaque: opaque
-
display the receiver on a GC
** This method must be redefined in concrete classes (subclassResponsibility) **
-
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 must be redefined in concrete classes (subclassResponsibility) **
-
widthOn: aGC
-
return the width (in device units) of the receiver when displayed in aGC
** This method must be redefined in concrete classes (subclassResponsibility) **
string protocol
-
at: index
-
behave like a string when accessing characters
-
do: aBlock
-
behave like a string when enumerating characters
-
withoutAnyColorEmphasis
-
to be redefined in subclasses
SeparatingLineEntry
|