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

HookswitchButton

inherits from Button

Object <- Viewable <- Stamp <- Button <- HookswitchButton



Operations

Get list of all operations

AboutToShow
Action
CanSetName
Idle


Attributes

Get list of all attributes

StaticNameAndImage


Fields

Field Type
Viewable: superview: Viewable
relativeOrigin: Dot
contentSize: Dot
viewFlags: Flags
labelStyle: TextStyle
color: Unsigned
altColor: Unsigned
shadow: Shadow
sound: Playable
Stamp: image: Image
HasBorder: border: Border
HookswitchButton: phonePanel: Object
staticNameAndImage: Boolean


Instance template

instance HookswitchButton tag;
 relativeOrigin: <0.0,0.0>;
    contentSize: <0.0,0.0>;
      viewFlags: 0x00000000;
     labelStyle: nilObject;
          color: 0;
       altColor: 0;
         shadow: nilObject;
          sound: nilObject;
          image: nilObject;
         border: nilObject;
     phonePanel: nilObject;
staticNameAndImage: false;
end instance;

Class definition

Define Class HookswitchButton;
    inherits from Button;

    field phonePanel:           Object;
    field staticNameAndImage:   Boolean, getter, setter;

    attribute StaticNameAndImage: Boolean;
        // if a hookswitch button is in a phone status window, then it 
        // never needs to change its name to anything but "hang up"

    overrides AboutToShow;
        // updates the image and name to represent the appropriate state
    overrides Action;
        // dials, redials, or hangs up
    overrides Idle;
        // updates the image and name to repressent the appropriate state
    overrides CanSetName;
        // returns false
end class;