Package | com.gestureworks.cml.elements |
Class | public class RadioButtons |
Inheritance | RadioButtons ![]() ![]() |
var rButtons:RadioButtons = new RadioButtons("A,B,C,D,E"); rButtons.x = 200; rButtons.y = 200; rButtons.labels = "Abracadabra,B,C,D,E,f,g,h,i,k"; rButtons.fontColor = 0xFF0216; rButtons.verticalOffset = 70; rButtons.update(); rButtons.addEventListener(StateEvent.CHANGE, testRBSelect); addChild(rButtons); function testRBSelect(event:StateEvent):void { trace(event.value); }
See also
Property | Defined By | ||
---|---|---|---|
absOffset : Boolean = false | RadioButtons | ||
![]() | autoShuffle : Boolean
autoshuffles
| TouchContainer | |
![]() | childList : ChildList
Returns the object's childList. | TouchContainer | |
![]() | className : String
sets the class name of displayobject
| TouchContainer | |
![]() | cloneExclusions : Vector.<String> [read-only]
Returns a list of properties to exclude when cloning this object
| TouchContainer | |
![]() | cmlIndex : int
Returns the index created by the CML parser. | TouchContainer | |
![]() | dimensionsTo : Object
Sets the dimensions of TouchContainer to given object
| TouchContainer | |
![]() | dropShadow : Boolean
Sets the drop shadow effect
| TouchContainer | |
fontAlpha : Number
The alpha for the labels. | RadioButtons | ||
fontColor : uint | RadioButtons | ||
fontSize : Number | RadioButtons | ||
fontStyle : String | RadioButtons | ||
graphicReps : String
A comma delimited string of ids of display objects to use for buttons. | RadioButtons | ||
![]() | group : String | TouchContainer | |
![]() | height : Number [override]
sets the height of the container
| TouchContainer | |
![]() | heightPercent : Number
sets the height of the container
| TouchContainer | |
horizontalOffset : Number | RadioButtons | ||
![]() | id : String
Returns the object's id. | TouchContainer | |
labels : String | RadioButtons | ||
![]() | layout : *
specifies the type of layout
| TouchContainer | |
![]() | layoutList : Dictionary | TouchContainer | |
![]() | mouseChildren : Boolean [override]
sets the mousechildren value to true or false. | TouchContainer | |
nestedButtons : Boolean
Specifies whether the children are nested buttons. | RadioButtons | ||
![]() | paddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area. | TouchContainer | |
![]() | paddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area. | TouchContainer | |
![]() | paddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area. | TouchContainer | |
![]() | paddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area. | TouchContainer | |
pageButtons : Boolean
Set whether or not the buttons are being used for pagination. | RadioButtons | ||
![]() | position : *
Sets the position
| TouchContainer | |
radioButtons : Dictionary [read-only] | RadioButtons | ||
radioColor : uint
The color for the radio buttons;
| RadioButtons | ||
radioStroke : Number
The stroke of the radio button's graphic. | RadioButtons | ||
radioStrokeColor : uint
The color of a radio button's stroke;
| RadioButtons | ||
![]() | relativeX : Boolean
When set true this containers children's x position will be laid out relatively
to each other. | TouchContainer | |
![]() | relativeY : Boolean
When set true this containers children's y position will be laid out relatively
to each other. | TouchContainer | |
selectedColor : uint
The color of the fill of the selected radio button;
| RadioButtons | ||
selectedFillRatio : Number
The amount of fill when the radio button is selected. | RadioButtons | ||
selectedLabel : String [read-only]
The currently selected label
| RadioButtons | ||
![]() | sound : String | TouchContainer | |
![]() | state : Dictionary | TouchContainer | |
![]() | stateId : *
Returns the current state id. | TouchContainer | |
textEls : Dictionary [read-only] | RadioButtons | ||
![]() | toBitmap : Boolean | TouchContainer | |
verticalLayout : Boolean | RadioButtons | ||
verticalOffset : Number | RadioButtons | ||
![]() | width : Number [override]
sets the width of the container
| TouchContainer | |
![]() | widthPercent : Number
sets the width of the container
| TouchContainer |
Method | Defined By | ||
---|---|---|---|
RadioButtons(labels:String = null)
RadioButton Constructor. | RadioButtons | ||
![]() | activateTouch():void | TouchContainer | |
![]() | addAllChildren():void
method searches the child and adds to the list
| TouchContainer | |
![]() | addChild(child:DisplayObject):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | addChildAt(child:DisplayObject, index:int):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | applyLayout(value:* = null):void
Apply the containers layout
| TouchContainer | |
![]() | childToList(id:String, child:*):void
child appended to the childlist
| TouchContainer | |
![]() | clone():*
Clone method
| TouchContainer | |
dispose():void [override]
Destructor
| RadioButtons | ||
![]() | getElementById(id:String):*
Searches CML childList by id. | TouchContainer | |
![]() | getElementsByClassName(className:String):Array
Searches the CML childList by className. | TouchContainer | |
![]() | getElementsByTagName(tagName:Class):Array
Searches the CML childList by tagName as Class. | TouchContainer | |
init():void [override]
Initializes the configuration and display of the RadioButtons
| RadioButtons | ||
![]() | loadState(sId:* = null, recursion:Boolean = false):void
Loads state by index number. | TouchContainer | |
![]() | makeGestureList(value:XMLList):Object
Creates gestureList object from XML
| TouchContainer | |
![]() | parseCML(cml:XMLList):XMLList
Parse cml for local layouts. | TouchContainer | |
![]() | postparseCML(cml:XMLList):void
Abstract method allows the setting of a postparse CML routine. | TouchContainer | |
![]() | querySelector(selector:String):*
Searches the CML childList by selector. | TouchContainer | |
![]() | querySelectorAll(selector:*):Array
Search the CML childList by selector. | TouchContainer | |
![]() | removeChild(child:DisplayObject):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildAt(index:int):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildren(beginIndex:int = 0, endIndex:int = 2147483647):void [override]
Removes children from display list and, if not already removed, the child list
| TouchContainer | |
![]() | saveState(sId:* = null, recursion:Boolean = false):void
Save state by index number. | TouchContainer | |
![]() | searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists. | TouchContainer | |
selectButton(s:String):void | RadioButtons | ||
![]() | setDimensionsToChild():void
method sets the dimensions of each child
| TouchContainer | |
![]() | tweenState(sId:* = null, tweenTime:Number = 1):void
Tween state by stateIndex from current to given state index. | TouchContainer | |
update():void
Re-draws the display to incorporate any changes. | RadioButtons | ||
![]() | updatePadding():void
Updates child padding within this container
| TouchContainer | |
![]() | updatePercentDim():void
Updates child percent dimensions within this container
| TouchContainer | |
![]() | updateProperties(state:* = 0):void
Updates properties from state. | TouchContainer | |
![]() | updateRelativePos():void
Updates child relative positions within this container
| TouchContainer |
absOffset | property |
public var absOffset:Boolean = false
fontAlpha | property |
fontAlpha:Number
The alpha for the labels.
public function get fontAlpha():Number
public function set fontAlpha(value:Number):void
fontColor | property |
fontColor:uint
public function get fontColor():uint
public function set fontColor(value:uint):void
fontSize | property |
fontSize:Number
public function get fontSize():Number
public function set fontSize(value:Number):void
fontStyle | property |
fontStyle:String
public function get fontStyle():String
public function set fontStyle(value:String):void
graphicReps | property |
graphicReps:String
A comma delimited string of ids of display objects to use for buttons. If a display object is selected this way, its alpha will be dimmed when not selected.
public function get graphicReps():String
public function set graphicReps(value:String):void
horizontalOffset | property |
horizontalOffset:Number
public function get horizontalOffset():Number
public function set horizontalOffset(value:Number):void
labels | property |
labels:String
public function get labels():String
public function set labels(value:String):void
nestedButtons | property |
nestedButtons:Boolean
Specifies whether the children are nested buttons.
public function get nestedButtons():Boolean
public function set nestedButtons(value:Boolean):void
pageButtons | property |
pageButtons:Boolean
Set whether or not the buttons are being used for pagination. This will automatically add arrows to either side of the buttons the same color as them.
public function get pageButtons():Boolean
public function set pageButtons(value:Boolean):void
radioButtons | property |
radioButtons:Dictionary
[read-only] public function get radioButtons():Dictionary
radioColor | property |
radioColor:uint
The color for the radio buttons;
public function get radioColor():uint
public function set radioColor(value:uint):void
radioStroke | property |
radioStroke:Number
The stroke of the radio button's graphic.
public function get radioStroke():Number
public function set radioStroke(value:Number):void
radioStrokeColor | property |
radioStrokeColor:uint
The color of a radio button's stroke;
public function get radioStrokeColor():uint
public function set radioStrokeColor(value:uint):void
selectedColor | property |
selectedColor:uint
The color of the fill of the selected radio button;
public function get selectedColor():uint
public function set selectedColor(value:uint):void
selectedFillRatio | property |
selectedFillRatio:Number
The amount of fill when the radio button is selected.
public function get selectedFillRatio():Number
public function set selectedFillRatio(value:Number):void
selectedLabel | property |
selectedLabel:String
[read-only] The currently selected label
public function get selectedLabel():String
textEls | property |
textEls:Dictionary
[read-only] public function get textEls():Dictionary
verticalLayout | property |
verticalLayout:Boolean
public function get verticalLayout():Boolean
public function set verticalLayout(value:Boolean):void
verticalOffset | property |
verticalOffset:Number
public function get verticalOffset():Number
public function set verticalOffset(value:Number):void
RadioButtons | () | Constructor |
public function RadioButtons(labels:String = null)
RadioButton Constructor. Allows users to define a group of radio buttons by passing a comma delimited string containing label names.
Parameterslabels:String (default = null ) — the comma delimited list of labels
|
dispose | () | method |
override public function dispose():void
Destructor
init | () | method |
override public function init():void
Initializes the configuration and display of the RadioButtons
selectButton | () | method |
public function selectButton(s:String):void
Parameters
s:String |
update | () | method |
public function update():void
Re-draws the display to incorporate any changes.