eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ListEntry':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: ListEntry


Inheritance:

   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

Description:


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.

copyright

COPYRIGHT (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.

Class protocol:

instance creation
o  separatingLineEntry


Instance protocol:

comparing
o  < aString
behave like a string when comparing

o  = aString
behave like a string when comparing

o  hash
return an integer useful for hashing

printing & storing
o  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.

o  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
o  hasChangeOfEmphasis
return true, if the receiver contains non-empty emphasis information
i.e. any non-normal (=emphasized) characters

o  hasIcon

o  hasImage

o  includes: aCharacter
behave like a string when testing

o  size
behave like a string when asked for the size

o  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).

o  string

required protocol
o  asString
return the receiver as a string (for example, to store it in a file)

** This method must be redefined in concrete classes (subclassResponsibility) **

o  displayOn: aGC x: x y: y opaque: opaque
display the receiver on a GC

** This method must be redefined in concrete classes (subclassResponsibility) **

o  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.

o  sameStringAndEmphasisAs: aStringOrText

** This method must be redefined in concrete classes (subclassResponsibility) **

o  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
o  at: index
behave like a string when accessing characters

o  do: aBlock
behave like a string when enumerating characters

o  withoutAnyColorEmphasis
to be redefined in subclasses


Private classes:

    SeparatingLineEntry


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 15:56:04 GMT