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

Package | org.apache.flex.core
Class | public class Strand
Inheritance | Strand EventDispatcher flash.events.EventDispatcher
Implements | IStrand
Subclasses | ItemRendererClassFactory, ScrollBarView

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The Strand class is the base class for non-display object that implement a strand.

Public Properties

| Property | Defined By
--- | --- | ---
|  | beads : Array | Strand
|  | id : String An id property for MXML documents. | Strand
|  | model : IBeadModel An IBeadModel that serves as the data model for the component. | Strand

Public Methods

| Method | Defined By
--- | --- | ---
|  | Strand() Constructor. | Strand
|  | addBead(bead:IBead):void Add a bead to the strand. | Strand
|  | getBeadByType(classOrInterface:Class):IBead Find a bead on the strand. | Strand
|  | removeBead(value:IBead):IBead Remove a bead from the strand. | Strand

Property Detail

beads | property

`public var beads:Array`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

id | property |

`id:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

An id property for MXML documents.

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

model | property |

`model:IBeadModel`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

An IBeadModel that serves as the data model for the component. Note that there is no controller or view properties since this not a display object.

Implementation
`public function get model():IBeadModel`
`public function set model(value:IBeadModel):void`
Constructor Detail

Strand | () | Constructor

`public function Strand()`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Constructor.

Method Detail

addBead | () | method

`public function addBead(bead:IBead):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Add a bead to the strand.

Parameters

| `bead:IBead` — The bead to be added.

getBeadByType | () | method |

`public function getBeadByType(classOrInterface:Class):IBead`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Find a bead on the strand.

Parameters

| `classOrInterface:Class` — The class or interface to use to search for the bead

Returns

| `IBead` — The bead.

removeBead | () | method |

`public function removeBead(value:IBead):IBead`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Remove a bead from the strand.

Parameters

| `value:IBead` — bead The bead to be removed.

Returns

| `IBead`

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