background image
C H A P T E R 4
NewtApp Applications
4-34
Summary of the NewtApp Framework
currentViewDef: //Set to current viewDef
currentStatView: //Set to current context of viewDef
StartFlush: // Starts timer that flushes entry
func()...,
EndFlush: // Called when flush timer fires
func()...,
EntryCool: // Is target read-only? True
report
func(
report
)..., //displays write-protected message
JamFromEntry: // Finds children's jamFromEntry and sends
func(
otherEntry
)..., // message if found, then retargets
Retarget: // Changes stationery's display then sends
func()...,//message on to child views
DoRetarget: // Calls the "right" retarget
func()...,//
}
newtFalseEntryView
4
aFalseEntryView
:= {// Use as container for slot views in
_proto: newtFalseEntryView, // non-NewtApp applications.
targetSlot: 'target, //Parent needs to have slots
dataCursorSlot: 'dataCursor, //with names
targetSlot: 'dataSoup, //that match each of
dataSoup: 'soupQuery // these symbols.
// newtFalseEntryView inherits all newtEntryView methods.
}
newtRollEntryView
4
aRollEntryView
:= { // Entry view for paper roll-style apps
_proto: newtRollEntryView, //stationery required.
bottomlessHeight: kEntryViewHeight, //Optional
// Inherits slots and methods from newtEntryView.
}
newtEntryPageHeader
4
aPageHeader
:= {
// Header bar for card or page-style apps
_proto: newtEntryPageHeader,
// contains no additional slots or methods
}
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна