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

MailStatView

inherits from Box
inherits from HasReinitialize

Object <- Viewable <- Box <- MailStatView



Operations

Get list of all operations

AboutToShow
Draw
IncrementReceivedCount
IncrementSentCount
MakeValid
Reinitialize


Attributes

Get list of all attributes

ReceivedCountAsText
SentCountAsText


Fields

Field Type
Viewable: superview: Viewable
relativeOrigin: Dot
contentSize: Dot
viewFlags: Flags
labelStyle: TextStyle
color: Unsigned
altColor: Unsigned
shadow: Shadow
sound: Playable
HasBorder: border: Border
MailStatView: style: TextStyle
stack: BookStack
lowYearLimit: Unsigned
highYearLimit: Unsigned
pageOffset: Micron
leftWidth: Micron
centerSkip: Micron
statistics: IntegerList


Instance template

instance MailStatView tag;
 relativeOrigin: <0.0,0.0>;
    contentSize: <0.0,0.0>;
      viewFlags: 0x00000000;
     labelStyle: nilObject;
          color: 0;
       altColor: 0;
         shadow: nilObject;
          sound: nilObject;
         border: nilObject;
          style: nilObject;
          stack: nilObject;
   lowYearLimit: 0;
  highYearLimit: 0;
     pageOffset: <0.0>;
      leftWidth: <0.0>;
     centerSkip: <0.0>;
     statistics: nilObject;
end instance;

Class definition

Define Class MailStatView;
    inherits from Box;
    inherits from HasReinitialize;
    
    field style:            TextStyle;
    field stack:            BookStack, weak;
    field lowYearLimit:     Unsigned;
        // no statistics will be recorded for years earlier than this
    field highYearLimit:    Unsigned;
        // no statistics will be recorded for years later than this
    field pageOffset:       Micron;
    field leftWidth:        Micron;
    field centerSkip:       Micron;
    field statistics:       IntegerList, weak;
        // a list of (date, sentCount, receivedCount) triples

    attribute ReceivedCountAsText: Text, readOnly;
    attribute SentCountAsText: Text, readOnly;

    operation IncrementReceivedCount(), noFail;
    operation IncrementSentCount(), noFail;

    overrides AboutToShow, Draw, Reinitialize;
    overrides MakeValid;
end class;