previous chapter contents page top page next chapter


CopyWindow

March 15, 1996

inherits from GadgetWindow;

Class Description

When the user copies a data package in the storeroom, Magic Cap puts up a copy window to allow the user to perform the copy.

Programming information

Instantiate: never
Subclass: never
Call its methods: never

You probably won't ever create an object or a subclass of class CopyWindow. The information in this chapter is provided for debugging and curiosity only.

Methods defined by class CopyWindow

Class CopyWindow defines the following methods:

Method Description
AboutToHide Overridden to help save memory.
AboutToShow Overridden to set up object to copy, window text, and window title.
Confirm Overridden to perform copy operation when user touches copy button.
SourceObject Returns object that will be copied by Confirm.
SetSourceObject Sets object that will be copied by Confirm.

Fields defined by class CopyWindow

Class CopyWindow defines the following fields:

Field Type Description
Inherited from SingleLinkable
next Object Next item in view list
Inherited from Linkable
previous Object Previous item in view list
Inherited from Viewable
superview Viewable Container for this object
subview Viewable Object contained by this object
relativeOrigin Dot Origin relative to superview
contentSize Dot Size of content rectangle
viewFlags Flags Property settings
labelStyle TextStyle Text style of object's label
color Color Color of object's content
shadow Shadow Shadow drawn with object
sound Sound Sound associated with object
Inherited from HasBorder
border Border Framed border drawn around object
Inherited from Window
windowFlags Flags Stores various boolean attributes of the window
Inherited from TitledWindow
titleColor Unsigned RGB color for title box
titleHeight Micron Height of title box
dependents ObjectList List of dependent windows
Inherited from BalloonSpout
balloonDot Dot Cached dot position, used by Magic Cap
Inherited from GadgetWindow
target Object Target for this window
Defined by CopyWindow
sourceObject Object Object to be copied by this window
destinationChoices ChoiceBox Choice box listing destination containers
titleTemplate Text Template used to create window title
nameField TextField User-entered name for copy of object

Method Descriptions

AboutToHide

overrides AboutToHide
Call: rarely
Override: sometimes

Class CopyWindow overrides AboutToHide to return the copy window to its default state in order to save RAM by preventing shadowing.

AboutToShow

overrides AboutToShow
Call: rarely
Override: sometimes

Class CopyWindow overrides AboutToShow to prepare for the copy. AboutToShow determines the object to be copied, puts default text into nameField, and creates the title of the window.

Confirm

overrides Confirm
Call: rarely
Override: sometimes

Class CopyWindow overrides Confirm to perform the copy operation when the user touches the copy button.

SourceObject

attribute SourceObject: Object
// operation SourceObject():Object
// operation SetSourceObject(newValue)
Call: rarely
Override: rarely

The attribute SourceObject refers to the object that will be copied when the user touches the copy button.