This structure provides an abstract entry for arbitrary data types, provided the user supplies a print function.
List of Import References :
See BOOL
See BTUnion
See Char
See Com
See DENOTATION
See Int
See Nat
See Option
See Pair
See Real
See Seq
See Set
See String
See Void
See WinConfig
See WinEvent
See WinInternal
See WinRegulator
See WinTclTk
SIGNATURE AEntryNE[data, print]
$Date: 2010-09-30 18:24:17 +0200 (Do, 30. Sep 2010) $ ($Revision: 616 $)
SORT data FUN print: data -> denotation
IMPORT Com[aEntry] ONLY com Com[void] ONLY com Com[data] ONLY com Void ONLY void WinRegulator ONLY regulator:SORT WinEvent ONLY event:SORT eventInfo:SORT WinInternal ONLY view:SORT config:SORT Nat ONLY nat
SORT aEntry
There are three versions available for aEntries:
FUN aEntry: data -> com[aEntry]
FUN aEntry: data ** nat -> com[aEntry]
FUN aEntry: data ** config -> com[aEntry]
The "long" versions can be used, if the representation is longer than the available space. A horizontal scroller is attached to the entry, otherwise there is no difference.
FUN aEntryLong: data -> com[aEntry] FUN aEntryLong: data ** nat -> com[aEntry] FUN aEntryLong: data ** config -> com[aEntry] FUN defaultDim: nat FUN defaultConfig: config
FUN view: aEntry -> view FUN regulator: aEntry -> regulator
Note: get
and upd
fail, if text cannot be parsed as data.
set the displayed value (blocked until aEntry is displayed!, spwan an agent to initialize the entry!
FUN set: aEntry ** data -> com[void]
get the displayed value
FUN get: aEntry -> com[data]
update data as specified by function
FUN upd: aEntry ** (data -> data) -> com[void]
FUN bind: aEntry ** event ** (aEntry ** eventInfo -> com[void]) -> com[void] FUN bind: aEntry ** event ** (aEntry ** eventInfo ** data -> com[void]) -> com[void]
Specify a command, which is called, whenever set
or upd
have
been called. This may be repeated for different commands.
FUN sync: aEntry ** (data -> com[void]) -> com[void]
next node: ComCheckWin,
prev node: AEntry,
up to node: Subsystem Opal Window Additions