eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ModelListEntry':

Home

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

Class: ModelListEntry


Inheritance:

   Object
   |
   +--ListEntry
      |
      +--ModelListEntry
         |
         +--LabelAndIcon

Package:
stx:libwidg2
Category:
Views-Support
Version:
rev: 1.5 date: 2021/01/20 14:39:32
user: cg
file: ModelListEntry.st directory: libwidg2
module: stx stc-classLibrary: libwidg2

Description:


Use this class, if you provide some SelectionInListView, ComboBox, etc. with
both a display string, and you want to store some model specific information, too.

You can store a class, a selector to perform, a factory object or anything else
in model.


[instance variables:]
    string          String          string to display
    model           Object          anything you want to store

[class variables:]

copyright

COPYRIGHT (c) 2002 by eXept Software AG 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  string: stringArg model: modelArg


Instance protocol:

accessing
o  model

o  model: something

o  string

o  string: something

o  string: stringArg model: modelArg

required protocol
o  asString

o  displayOn: arg1 x: arg2 y: arg3 opaque: arg4
(comment from inherited method)
display the receiver on a GC

o  sameStringAndEmphasisAs: aStringOrText

o  widthOn: arg
(comment from inherited method)
return the width (in device units) of the receiver when displayed in aGC

string protocol
o  expandPlaceholdersWith: argArrayOrDictionary



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 22 Dec 2024 03:30:41 GMT