GetterSetter
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Version: | 25 October 2007 |
| Classpath: | GetterSetter |
| File last modified: | Thursday, 25 October 2007, 23:37:21 |
Testing getter and setter methods.
Summary
Instance properties
- mA : String
- mB : Number
- mD : String
- a : Number
- A 'normal' getter and setter.
- b : String
- Illustrates some exceptional (but not impossible) occurrence: get and set method differ in type.
- b (inA:Number) : Number
- The setter passes a Number.
- c (inA:Boolean) : Boolean
- The same as above but in different order (should make no difference in rendering, only in order)
- c : Number
- d : String
- Combining descriptions.
- verticalAlign (val:String) : String
- Setter the vertical alignment of the menu within its bounding box
- horizontalAlign (val:String) : String
- Setter the horizontal alignment of the menu within its bounding box
Instance properties
a
a:Number
(read,write)
A 'normal' getter and setter. In the documentation the get method and set method are combined as one property.
b
b:String
(read)
Illustrates some exceptional (but not impossible) occurrence: get and set method differ in type.
b
b:Number
(write)
The setter passes a Number.
c
c:Boolean
(write)
The same as above but in different order (should make no difference in rendering, only in order)
c
c:Number
(read)
d
d:String
(read,write)
Combining descriptions. This is the getter's comment. Continued comment from setter.
To do:
- To do text from the getter.
- To do text from the setter.
horizontalAlign
horizontalAlign:String
(write)
Setter the horizontal alignment of the menu within its bounding box
Component metadata:
| Inspectable | "danger", 1, maybe true, defaultValue: "left" enumeration: "left,middle,right", name: "Horizontal Align", type: "String", |
|---|
mA
private mA:String
(read)
mB
private mB:Number
(read)
mD
private mD:String
(read)
verticalAlign
verticalAlign:String
(write)
Setter the vertical alignment of the menu within its bounding box
Component metadata:
| Inspectable | defaultValue: "top" enumeration: "top,bottom", name: "Vertical Align", |
|---|
Instance methods
get
function get (
) : Object
A method called "get" that is not a property getter.
Returns:
- Object data
set
function set (
data:Object) : Void
A method called "set" that is not a property setter.
Parameters:
data:
Object data