Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
CheckBoxView

Package | org.apache.flex.html.beads
Class | public class CheckBoxView
Inheritance | CheckBoxView BeadViewBase EventDispatcher flash.events.EventDispatcher
Implements | IBeadView

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The CheckBoxView class is the default view for the org.apache.flex.html.CheckBox class. It displays a simple checkbox with an 'x' if checked, and a label on the right. There are no styles or properties to configure the look of the 'x' or the position of the label relative to the checkbox as there are no equivalents in the standard HTML checkbox. A more complex CheckBox could implement more view configuration.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | host : IUIBase [read-only] The host component. | BeadViewBase
|  | html : String The html-formatted text to display in the label. | CheckBoxView
|  | selected : Boolean true if the button is selected. | CheckBoxView
|  | strand : IStrand [override] [write-only] The host component for this bead. | CheckBoxView
|  | _strand : IStrand The strand. | BeadViewBase
|  | text : String The text to display in the label. | CheckBoxView

Public Methods

| Method | Defined By
--- | --- | ---
|  | CheckBoxView() Constructor. | CheckBoxView

Protected Methods

| Method | Defined By
--- | --- | ---
|  | drawCheckBox(icon:Shape):void Draw the checkbox | CheckBoxView
|  | layoutControl():void Display the icon and text label | CheckBoxView

Property Detail

html | property

`html:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The html-formatted text to display in the label.

Implementation
`public function get html():String`
`public function set html(value:String):void`

selected | property |

`selected:Boolean`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

`true` if the button is selected.

Implementation
`public function get selected():Boolean`
`public function set selected(value:Boolean):void`

strand | property |

`strand:IStrand` [write-only] [override]

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The host component for this bead.

Implementation
`public function set strand(value:IStrand):void`

text | property |

`text:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The text to display in the label.

Implementation
`public function get text():String`
`public function set text(value:String):void`
Constructor Detail

CheckBoxView | () | Constructor

`public function CheckBoxView()`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Constructor.

Method Detail

drawCheckBox | () | method

`protected function drawCheckBox(icon:Shape):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Draw the checkbox

Parameters

| `icon:Shape`

layoutControl | () | method |

`protected function layoutControl():void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Display the icon and text label

Mon Sep 5 2016, 07:19 AM -07:00