background image
C H A P T E R 4
NewtApp Applications
Summary of the NewtApp Framework
4-33
forceNewEntry: true, //Creates blank entry for layout
menuRightButtons:[], //Replaces slot in status bar
menuLeftButtons:[], //Replaces slot in status bar
nothingCheckable: nil, //True suppresses checkboxes
Abstract: //Returns shapes for items in overviews
func(
targetEntry, bbox
)..., //Override to extract text
GetTargetInfo: //Returns frame with target information
func(
targetType
)...,
HitItem: //Called when overview item is tapped.
func(
index, x, y
)...,
// All newtLayout methods are inherited.
}
newtRollOverLayout
4
myOverLayout
:= { // Overview for roll-type application
_proto: newtRollOverLayout //Same as newtOverLayout
centerTarget: nil, // True centers entry in overview
masterSoupSlot: '
mainSoup
, // Required.
// Symbol referring to soup from allSoups slot
name: "",
// Required but not used.
menuRightButtons:[], //Replaces slot in status bar
menuLeftButtons:[], //Replaces slot in status bar
forceNewEntry: true, //Creates blank entry for layout
nothingCheckable: nil, //True suppresses checkboxes
Abstract: //Returns shapes for items in overviews
func(
targetEntry, bbox
)..., //Override to extract text
GetTargetInfo: //Returns frame with target information
func(
targetType
)...,
HitItem: //Called when overview item is tapped.
func(
index, x, y
)...,
// All newtLayout methods are inherited.
}
newtEntryView
4
anEntryView
:= {
// Invisible container for slot views
_proto: newtEntryView
entryChanged: //Set to true for flushing
entryDirtied: //Set to true if flush occurred
target: //Set to entry for display
currentDataDef: //Set to current dataDef
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна