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

Package | org.apache.flex.core
Interface | public interface IStrand
Implementors | Application, BinaryUploader, Button, CheckBox, HScrollBarView, HTTPService, MXMLBeadView, RadioButton, ScrollBarView, Strand, TextAreaView, TextFieldItemRenderer, ToggleTextButton, VScrollBarView

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The IStrand interface is the basic interface for a host component for a set of plug-ins known as Beads. In FlexJS, the recommended pattern is to break out optional functionality into small plug-ins that can be re-used in other components, or replaced with different implementations optimized for different things such as size, performance, advanced features, debugging, etc. Beads are added to and removed from a Strand and can find and coordinate with other beads on the strand.

Public Methods

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

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(bead: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

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

Returns

| `IBead`

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