Packageorg.apache.flex.core
Classpublic class UIBase
InheritanceUIBase Inheritance flash.display.Sprite
Implements IStrand, IEventDispatcher, IUIBase, IParent
Subclasses Alert, Border, ComboBox, ContainerBase, ContainerContentArea, DataGrid, DateChooser, DateField, FilledRectangle, Image, Label, List, Map, NonVirtualDataGroup, ScrollBar, SimpleAlert, Slider, Spinner, TextArea, TextInput, UIItemRendererBase

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The UIBase class is the base class for most composite user interface components. For the Flash Player, Buttons and Text controls may have a different base class and therefore may not extend UIBase. However all user interface components should implement IUIBase.



Public Properties
 PropertyDefined By
  $height : Number
[read-only] Retrieve the low-level bounding box height.
UIBase
  $width : Number
[read-only] Retrieve the low-level bounding box width.
UIBase
  beads : Array
The array property that is used to add additional beads to an MXML tag.
UIBase
  className : String
The classname.
UIBase
  element : Object
[read-only] Each IUIBase has an element that is actually added to the platform's display list DOM.
UIBase
  explicitHeight : Number
The explicitly set width (as opposed to measured width or percentage width).
UIBase
  explicitWidth : Number
The explicitly set width (as opposed to measured width or percentage width).
UIBase
  height : Number
[override] The height of the component.
UIBase
  id : String
An id property for MXML documents.
UIBase
  measurementBead : IMeasurementBead
[read-only] A measurement bead, if one exists.
UIBase
  model : IBeadModel
An IBeadModel that serves as the data model for the component.
UIBase
  numElements : int
[read-only] The number of elements in the parent.
UIBase
  percentHeight : Number
The requested percentage height this component should have in the parent container.
UIBase
  percentWidth : Number
The requested percentage width this component should have in the parent container.
UIBase
  view : IBeadView
An IBeadView that serves as the view for the component.
UIBase
  width : Number
[override] The width of the component.
UIBase
Public Methods
 MethodDefined By
  
Constructor.
UIBase
  
addBead(bead:IBead):void
Add a bead to the strand.
UIBase
  
The method called when added to a parent.
UIBase
  
addElement(c:Object):void
Add a component to the parent.
UIBase
  
addElementAt(c:Object, index:int):void
Add a component to the parent.
UIBase
  
getBeadByType(classOrInterface:Class):IBead
Find a bead on the strand.
UIBase
  
getElementIndex(c:Object):int
Gets the index of this subcomponent.
UIBase
  
Remove a bead from the strand.
UIBase
  
removeElement(c:Object):void
Remove a component from the parent.
UIBase
Events
 Event Summary Defined By
  Set a different class for click events so that there aren't dependencies on the flash classes on the JS side.UIBase
Property Detail
$heightproperty
$height:Number  [read-only]

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Retrieve the low-level bounding box height. Not implemented in JS.


Implementation
    public function get $height():Number
$widthproperty 
$width:Number  [read-only]

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Retrieve the low-level bounding box width. Not implemented in JS.


Implementation
    public function get $width():Number
beadsproperty 
public var beads:Array

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The array property that is used to add additional beads to an MXML tag. From ActionScript, just call addBead directly.

classNameproperty 
className:String

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The classname. Often used for CSS class selector lookups.


Implementation
    public function get className():String
    public function set className(value:String):void
elementproperty 
element:Object  [read-only]

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Each IUIBase has an element that is actually added to the platform's display list DOM. It may not be the actual component itself.


Implementation
    public function get element():Object
explicitHeightproperty 
explicitHeight:Number

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The explicitly set width (as opposed to measured width or percentage width).


Implementation
    public function get explicitHeight():Number
    public function set explicitHeight(value:Number):void
explicitWidthproperty 
explicitWidth:Number

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The explicitly set width (as opposed to measured width or percentage width).


Implementation
    public function get explicitWidth():Number
    public function set explicitWidth(value:Number):void
heightproperty 
height:Number[override]

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The height of the component. If no height has been previously set the default height may be specified in the IValuesImpl or determined as the bounding box around all child components and graphics.


Implementation
    public function get height():Number
    public function set height(value:Number):void
idproperty 
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
measurementBeadproperty 
measurementBead:IMeasurementBead  [read-only]

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

A measurement bead, if one exists.


Implementation
    public function get measurementBead():IMeasurementBead
modelproperty 
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.


Implementation
    public function get model():IBeadModel
    public function set model(value:IBeadModel):void
numElementsproperty 
numElements:int  [read-only]

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The number of elements in the parent.


Implementation
    public function get numElements():int
percentHeightproperty 
percentHeight:Number

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The requested percentage height this component should have in the parent container. Note that the actual percentage may be different if the total is more than 100% or if there are other components with explicitly set heights.


Implementation
    public function get percentHeight():Number
    public function set percentHeight(value:Number):void
percentWidthproperty 
percentWidth:Number

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The requested percentage width this component should have in the parent container. Note that the actual percentage may be different if the total is more than 100% or if there are other components with explicitly set widths.


Implementation
    public function get percentWidth():Number
    public function set percentWidth(value:Number):void
viewproperty 
view:IBeadView

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

An IBeadView that serves as the view for the component.


Implementation
    public function get view():IBeadView
    public function set view(value:IBeadView):void
widthproperty 
width:Number[override]

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The width of the component. If no width has been previously set the default width may be specified in the IValuesImpl or determined as the bounding box around all child components and graphics.


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
UIBase()Constructor
public function UIBase()

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.

addedToParent()method 
public function addedToParent():void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The method called when added to a parent. This is a good time to set up beads.

addElement()method 
public function addElement(c:Object):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Add a component to the parent.

Parameters

c:Object — The subcomponent to add.

addElementAt()method 
public function addElementAt(c:Object, index:int):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Add a component to the parent.

Parameters

c:Object — The subcomponent to add.
 
index:int — The index where the subcomponent should 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.
getElementIndex()method 
public function getElementIndex(c:Object):int

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Gets the index of this subcomponent.

Parameters

c:Object — The subcomponent to add.

Returns
int — The index (zero-based).
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
removeElement()method 
public function removeElement(c:Object):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Remove a component from the parent.

Parameters

c:Object — The subcomponent to remove.

Event Detail
click Event
Event Object Type: org.apache.flex.events.Event

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Set a different class for click events so that there aren't dependencies on the flash classes on the JS side.