[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]

AttributeText

inherits from Object
inherits from TextContainer
inherits interface from EditsTarget

Object <- AttributeText



Operations

Get list of all operations

Closing
CopyTextFromTarget
CopyTextIntoTarget
Copying
Freeze
Notice
Opening
ReplaceTextData
Thaw
Validate


Attributes

Get list of all attributes

DataStore
DataStore
Target
Target
TargetAttribute
TextOwner


Fields

Field Type
AttributeText: textOwner: Object
text: Text
dontObserveOffscreen: Boolean
dontObserveOnscreen: Boolean
dontSetTarget: Boolean
zeroValueBlank: Boolean
setAttribute: Boolean
cacheMayBeWrong: Boolean
useName: Boolean
observing: Boolean
dirty: Boolean
refCount: UnsignedShort
target: Object
targetAttribute: OperationNumber


Instance template

instance AttributeText tag;
      textOwner: nilObject;
           text: nilObject;
dontObserveOffscreen: false;
dontObserveOnscreen: false;
  dontSetTarget: false;
 zeroValueBlank: false;
   setAttribute: false;
cacheMayBeWrong: false;
        useName: false;
      observing: false;
          dirty: false;
       refCount: 0;
         target: nilObject;
targetAttribute: nilOperation;
end instance;

Class definition

Define Class AttributeText;
    inherits from Object, TextContainer;
    inherits interface from EditsTarget;

    field textOwner             : Object, weak, getter;
    field text                  : Text;
    field dontObserveOffscreen  : Boolean;
    field dontObserveOnscreen   : Boolean;
    field dontSetTarget         : Boolean; 
        // don't allow SetTarget to do its will
    field zeroValueBlank        : Boolean; 
        // unused
    field setAttribute          : Boolean;
    field cacheMayBeWrong       : Boolean;
    field useName               : Boolean;
    field observing             : Boolean;
    field dirty                 : Boolean;
    field refCount              : UnsignedShort;
    field target                : Object, weak;
    field targetAttribute       : OperationNumber, getter, setter;

    overrides Target;
        // to make sure that if the target is an indexical, it gets the
        // right version of the indexical for the current actor (this is important
        // for faxing)
    overrides SetTarget;
    attribute TargetAttribute: OperationNumber, safe;

    operation CopyTextFromTarget(): Text, safe;
        // may return nilObject instead of an empty text object
    operation CopyTextIntoTarget(newText: HasText), safe;
    attribute TextOwner: Object, readOnly;

    // hooks for when the text comes on-screen
    overrides Opening, Closing;

    overrides ReplaceTextData;
    overrides DataStore, SetDataStore;
    overrides Notice;
    overrides Freeze, Thaw;
    overrides Copying;
        // clears observing flag

#ifdef VALIDATE
    overrides Validate;
        // checks copyAttributeMask setting
#endif
end class;