eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ListEntry':

Home

everywhere
www.exept.de
for:
[back]

Class: ListEntry


Inheritance:

   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

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.


Related information:

    ListView

Instance protocol:

printing & storing
o  printOn: aStream

o  printString

queries
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

o  string

required protocol
o  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 **

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

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 raises an error - it must be redefined in concrete classes **

o  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
o  < aString
behave like a string when comparing

o  = aString
behave like a string when comparing

o  at: index
behave like a string when accessing characters

o  do: aBlock
behave like a string when enumerating characters

o  hash
return an integer useful for hashing



ST/X 6.1.1; WebServer 1.620 at exept:8081; Mon, 21 May 2012 18:27:04 GMT