inherits from ContainerWindow; inherits from HasButtonInTitleBar;
Magic Cap defines class TrashWindow for the window that appears when the user taps the trash. The trash window is a container window that has an empty button in the title bar if there are any objects in the trash.
Instantiate: rarely Subclass: rarely Call its methods: never
You probably won't ever create an object or a subclass of class TrashWindow. The information in this chapter is provided for debugging and curiosity only.
Class TrashWindow defines the following methods:
Method | Description |
---|---|
CanAccept |
Overridden to reject objects that can't be deleted. |
ChangedContents | Overridden to redraw button in title bar appropriately. |
Clear | Overridden to destroy all objects in trash. |
MovedContents | Overridden to destroy objects in trash according to trash rules. |
ContentsInTransit | Overridden to always return true. |
Class TrashWindow defines no fields.
overrides CanAccept Call: rarely Override: sometimes
Class TrashWindow overrides CanAccept to reject objects that can't be deleted.
overrides ChangedContents Call: rarely Override: sometimes
Class TrashWindow overrides ChangedContents to draw the empty button in the title bar if the trash contains any objects, or to remove the button if the trash is empty.
overrides Clear Call: rarely Override: sometimes
Class TrashWindow overrides Clear to destroy all items in the trash.
overrides MovedContents Call: rarely Override: sometimes
Class TrashWindow overrides MovedContents to destroy objects in the trash if there are more than the number indicated by the user in the trash rules.
overrides ContentsInTransit Call: rarely Override: sometimes
Class TrashWindow overrides ContentsInTransit to always return true, indicating that trash contents are in transit.