C H A P T E R 1 6
Find
Summary
16-27
myCompatibleFinder:= {// Use to find data stored in
// non-soup data structures.
//Override most to fit your data.
_proto: ROM_CompatibleFinder,
owner:self, // Required. View that gets ShowFoundItem
// message;usually your app's base view.
title: "My Application",// Displayed in Find overview;
// usually inherited from owner.
findType:'text// Can also be 'dateBefore,
//'dateOn, or 'dateAfter.
findWords:[
textOrDate]
// Text or date to find.
items:[// Array of the items found by your search.
{_proto: myFoundItem, //Optional; but better
//to reference data as it
//gets altered destructively.
title: "My Application",//String displayed in
//Find overview.
},
{ /* and other such frames... */ },
]
selected: [], // Internal array of selected items.
ConvertToSoupEntry: func(
item
),//Return a soup entry
//corresponding to data item.
Count: func(),//Returns number of found items;
// don't override.
Delete: func(), // Deletes all selected items.
FileAndMove: func(
labelsChanged
,
newLabel
,
storeChanged
,
newStore
),
// Files and/or moves selected items
ForEachSelected: (
callbackFunction
), // Calls callback
// function for each selected
// found item; don't override.
GetTarget: func(), //Returns target frame; for routing
IsSelected: func(
item
), // Returns true if item is
// selected; don't override.
ReSync: func(), // Resets finder to its initial
// state; do not override.
SelectItem: func(
item
), // Marks item as selected
ShowFakeEntry: func(
index
), // Displays the index(th)
// number found item. Replaces
// ShowFoundItem in compatabile finder.
}