| Did you know ... | Search Documentation: |
| Send methods |
<-contained_in’.
A visual is defined to be contained in itself.->free
on the visual and all parts of this visual that are not protected. This
method may be used to destroy an entire tree of
visual objects.
First, it collects all visuals that are part of it and not protected
or part of a protected visual using visual<-contains.
Then it will send free to all collected visuals. This method takes care
of the fact that freeing one visual might result in the destruction of
others.
->free <-contains ->protect ->destroy->report
provides a general mechanism to present short descriptions of status,
warnings or errors to the application user. This method is integrated
with the general error reporting mechanism (see
object->error
and class error.
If no visual
object is available to send the report to, object->report
may be used.
The first argument describes the type of the message to be reported.
The type is an indication on how serious the message is and
thus how much attention it should attract from the application user. Its
values are:
status, but if no appropriate location can be found it will
invoke display->inform.status, but followed by a
graphical->flush to take immediate effect.->report:
progress messages.->alert
suffices. If there is an appropriate location for the message it will be
formatted there.
The remaining arguments are a format specification and format
arguments. See string->format
for details on PCE's formatting capabilities.
The method visual->report
performs the following steps:
<-report_to.->report
message. @reportee
thus points to the original visual
object that received the
visual->report
message.->report
with the same argument on the object. The method visual->report
is redefined by various subclasses. The most important are: label->report, frame->report
and‘display
visual->report’.
->report ->error ->format ->alert->reset
to all visual objects
it contains (recursively). visual->reset
is automatically invoked from the
host-language
after an abort to the hostlanguage toplevel. Various subclasses of
visual implement this method to reset parameters such as status,
event-focus, etc.
Bugs: Recovery after a crash or abort is not very save. The consistency of the objectbase may be violated, gesture objects often cannot be tracked and reset, etc.
->reset