background image
C H A P T E R 1 5
Filing
15-22
Summary
protoClockFolderTab
15
myClockFolderTabView := {
{_parent: myAppBaseView, // see page 15-20
_proto: { protoClockFolderTab,
// your folder tab's viewSetupFormScript must
// call inherited:?viewSetupFormScript()
viewSetupFormScript: <function, 0 arg(s) ...>, ...},
// do not attempt to alter the time display text
...}
Filing Functions and Methods
15
view
:GetTargetInfo(
reason
) // override for multiple targets
view
:MoveTarget (
target
,
destStore
) // move target between stores
RegFolderChanged(
callbackID
,
callBackFn
)// register folder change callback
UnRegFolderChanged(
callbackID
) // unregister folder change callback
AddFolder(
newFolderStr
,
appSymbol
) // add local folder
RemoveFolder(
folderSym
,
appSymbol
) // remove local folder
GetFolderStr(
folderSym
) // get user-visible folder name from app sym
RemoveAppFolders(
appSym
) // remove specified app's local folders
GetFolderList(
appSymbol
,
localOnly
) // list the app's local folders
Application-Defined Filing Functions and Methods
15
// Optional. Specify filing target, target view, target store
GetTargetInfo(
reason
)
// Required. Respond to changes in filing filter or store filter
targetView
:NewFilingFilter(
newFilter
)
// Required. File the item as specified
targetView
:FileThis (
target
,
labelsChanged
,
newLabels
,
storesChanged
,
newStore
)
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна