background image
C H A P T E R 2 2
Transport Interface
Using the Transport Interface
22-27
Store a reference to your routing slip template in the
routingSlip
slot in your
transport object.
Use the
protoFullRouteSlip
template, described in the following section, to
create a routing slip.
One additional proto for use in routing slips is described in the section "Using
protoAddressPicker" (page 22-31).
Using protoFullRouteSlip
22
This routing slip proto already includes most of the elements required in a routing
slip. Figure 22-3 shows an example of this proto. For a complete description of the
slots and methods in this proto, see "protoFullRouteSlip" (page 19-38) in Newton
Programmer's Reference
.
Figure 22-3
protoFullRouteSlip
view
The transport name and stamp icon in the upper-right corner of the routing slip are
automatically supplied. They are based on the transport
.actionTitle
and
transport
.icon
slots.
The format picker child in
protoFullRouteSlip
provides the picker list for
choosing among multiple formats. The current format is initially displayed. The
picker provides for opening an auxiliary view if one is associated with the current
format. This child view uses the
currentFormat
slot in the item (the
fields.currentFormat
slot in the routing slip), a list of routing formats
compatible with the item, and the
activeFormat
slot in the routing slip to set up
the picker with the correct choices. These slots are set up by the system.
When the user picks another format, the
activeFormat
slot is updated, which
changes the format choice shown next to the label. Additionally, the
SetDefaultFormat
message is sent to the application, and
currentFormat
in
Sender pop-up
Format picker
Send button
Cancel button
(Appears only if there are multiple formats)
This is a picker if there are multiple
transports in the group
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна