[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

HasContentList

mixes in with Viewable
mixes in with CanBeSearched

HasContentList



Operations

Get list of all operations

HopContentsToTrash
SearchForObject
Swallow


Attributes

Get list of all attributes

List
List


Fields

Field Type
HasContentList: contentList: StackOfCards


Instance template

Class HasContentList cannot be instantiated.


Class definition

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;