CanInstallSelf <- Entrance |
|
|
FallbackImage FinishInstallingSelf InstallFallback |
|
AuthoringModeOnly |
| Field | Type | |
|---|---|---|
| HasDestination: | destination: | Viewable |
Define Class Entrance; mixes in with Viewable; inherits from CanInstallSelf; inherits from HasDestination; attribute AuthoringModeOnly: Boolean, readOnly; // Is this entrance only visible in authoring mode? // Currently, this is only respected by certain // subclasses of CanContainEntrances. The default // method always returns false. overrides FinishInstallingSelf; // If the entrance was installed from a package, tries to set the // iPackageMainEntrance indexical if it hasn't already been set. // Also checks to see if the destination's stepback is valid, and // sets it to something reasonable if it is not. overrides InstallFallback; // Tries to install an entrance in iGuaranteedInstallLocation, // and uses FallbackImage(self) to try to give the newly created // entrance some character. Feel free to override this is there // is a better way to make a fallback for your subclass. operation FallbackImage() : Image; // Image to use when creating a fallback entrance. // The default method just calls Image(self). // Sometimes override. end class;