HasContentList |
|
|
HopContentsToTrash SearchForObject Swallow |
|
List List |
| Field | Type | |
|---|---|---|
| HasContentList: | contentList: | StackOfCards |
Define Class HasContentList; mixes in with Viewable, CanBeSearched; field contentList: StackOfCards; // used by List attribute overrides List; // returns value of contentList field; overrides SearchForObject; // offers stack scene of list of self as a place to be searched, then calls inherited method overrides SetList; // stores new value in contentList field; overrides Swallow; // accepts mini cards that implement the class of content list's proto card; // accepts all mini cards if proto card of content list is nilObject; // handles in box and out box stacks as special cases (card must be a ready-to-send Telecard); // also handles special case of dropping folder on out box; addressed cards in folder are individually hopped to out box; operation HopContentsToTrash(); // if list contains one item, hops mini-card for it to trash; // if list contains more than one item, creates folder full of all items, sets its name // to name of self, and hops mini-card for folder to trash end class;