background image
C H A P T E R 1 6
Find
16-26
Summary
Summary
16
Finder Protos
16
mySoupFinder:= {
// Use to find soup entries.
_proto: ROM_SoupFinder,
owner:self, // View that gets ShowFoundItem message
// usually your app's base view
title: "My Application",// Displayed in Find overview
// usually inherited from owner
cursor:
myCursor
,// Returned by search method's query
findType:'text// Must use this value for text search
findWords:[
search strings
] // Array of words to match
selected: [], // Internal array of selected items
Count: func(),//Returns # found items; don't override
Delete: func(), // Deletes all selected items
FileAndMove: func
(
labelsChanged
,
newLabel
,
storeChanged
,
newStore
),
// Files and/or moves selected items
ForEachSelected: func(
callbackFunction
), // Calls callback
// func for each selected found item; dont override
GetTarget: func(), //Returns target frame; for routing
IsSelected: func(
item
), // Returns true if item
// selected; don't override.
Reset: func(), // Resets cursor; don't override.
ReSync: func(), // Resets soupFinder; do not override.
SelectItem: func(
item
), // Marks item as selected
ShowFoundItem:func(
item, finder
),
ShowEntry: func(
entry
), // Displays entry;
// don't override
ShowOrdinalItem: func(
ordinal
), //Shows found item
// specified by integer
ZeroOneOrMore: func(), // Returns number of items;
// don't override
}
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна