Packageat.display
Classpublic class SlideDropTargetItemRenderer
InheritanceSlideDropTargetItemRenderer Inheritance mx.core.UIComponent
Implementsmx.controls.listClasses.IListItemRenderer, mx.core.IDataRenderer

The item renderer for the dropped area for slides in the PreCallModule.

See also

at.modules.PreCallModule


Public Properties
 PropertyDefined by
  color : uint = 0x000000
The color of the circle on the image that corresponds to the section of the image in the renderer.
SlideDropTargetItemRenderer
  data : Object
The data for the item renderer.
SlideDropTargetItemRenderer
  editable : Boolean
When set to true this renderer is allowed to be removed, but when false in the parent, it typically means that it can't be dragged, edited, or deleted.
SlideDropTargetItemRenderer
  itemIndex : int = -1
The number in the list that is viewable on the image.
SlideDropTargetItemRenderer
  mustHave : Boolean = false
Determines whether or not this renderer item is required, when used in the SlideDropTarget.
SlideDropTargetItemRenderer
  useSlideGroupColor : Boolean = false
When true the color value is passed from the parent to this renderer and that color is used as the circle background color.
SlideDropTargetItemRenderer
Protected Properties
 PropertyDefined by
  children : XMLList
Internal holder for the children nodes from the data of the item renderer.
SlideDropTargetItemRenderer
  createdRenderers : Array
Array of the renderers created for each Slide.
SlideDropTargetItemRenderer
  freeItemRenderers : Array
[static] Array of the unused renderers created for each Slide, this is shared between all SlideDropTargetItemRenderers.
SlideDropTargetItemRenderer
  statusSource : Class
The class from EveDefaultImagery for the required or remove image next to the list in the stack when used inside the SlideDropTarget.
SlideDropTargetItemRenderer
Public Methods
 MethodDefined by
  
Constructor.
SlideDropTargetItemRenderer
  
getVisibleImages(l:Number, r:Number):Object
Returns the images visible in this item renderer that are inbetween the specified x coordinates.
SlideDropTargetItemRenderer
Protected Methods
 MethodDefined by
  
SlideDropTargetItemRenderer
  
Pops an item renderer from the freeItemRenderers array.
SlideDropTargetItemRenderer
  
remove(e:MouseEvent):void
Dispatches a PreCallModuleEvent.REMOVE_SLIDE event if the slide isn't a "Must Have" slide.
SlideDropTargetItemRenderer
  
removeSlide():void
Removes a slide from the createdRenderers array and adds it to the freeItemRenderers array and also removes it from the display list.
SlideDropTargetItemRenderer
Events
 EventSummaryDefined by
    SlideDropTargetItemRenderer
Styles
 StyleDescriptionDefined by
  
cornerRadius
Type: Number   Format: Length   CSS Inheritance: no
The amount of rounding on the corners for the background color of the renderer. The default value is 6.
SlideDropTargetItemRenderer
  
horizontalGap
Type: Number   Format: Length   CSS Inheritance: no
The amount of space in pixels between each possible image in the renderer. The default value is 0.
SlideDropTargetItemRenderer
  
paddingBottom
Type: Number   Format: Length   CSS Inheritance: no
The amount of space in pixels between the imagery and the bottom of the renderer. The default value is 6.
SlideDropTargetItemRenderer
  
paddingLeft
Type: Number   Format: Length   CSS Inheritance: no
The amount of space in pixels between the imagery and the left side of the renderer. The default value is 6.
SlideDropTargetItemRenderer
  
paddingRight
Type: Number   Format: Length   CSS Inheritance: no
The amount of space in pixels between the imagery and the right side of the renderer. The default value is 6.
SlideDropTargetItemRenderer
  
paddingTop
Type: Number   Format: Length   CSS Inheritance: no
The amount of space in pixels between the imagery and the top of the renderer. The default value is 6.
SlideDropTargetItemRenderer
  
trashIcon
Type: Class   CSS Inheritance: no
The bitmap icon used to indicate that clicking will remove the slide from the call. The default value is at.display.EveDefaultImagery.TRASH_ICON.
SlideDropTargetItemRenderer
Property detail
childrenproperty
protected var children:XMLList

Internal holder for the children nodes from the data of the item renderer. This will be used in the Repeater in this renderer and will display all of the children nodes as images.

The default value is null.

colorproperty 
public var color:uint = 0x000000

The color of the circle on the image that corresponds to the section of the image in the renderer.

The default value is 0x000000;.

createdRenderersproperty 
protected var createdRenderers:Array

Array of the renderers created for each Slide.

The default value is [].

dataproperty 
data:Object  [read-write]

The data for the item renderer.

The default value is null.

This property can be used as the source for data binding.

Implementation
    public function get data():Object
    public function set data(value:Object):void
editableproperty 
editable:Boolean  [read-write]

When set to true this renderer is allowed to be removed, but when false in the parent, it typically means that it can't be dragged, edited, or deleted.

The default value is true.

Implementation
    public function get editable():Boolean
    public function set editable(value:Boolean):void
freeItemRenderersproperty 
protected static var freeItemRenderers:Array

Array of the unused renderers created for each Slide, this is shared between all SlideDropTargetItemRenderers.

The default value is [].

itemIndexproperty 
public var itemIndex:int = -1

The number in the list that is viewable on the image.

The default value is "".

mustHaveproperty 
public var mustHave:Boolean = false

Determines whether or not this renderer item is required, when used in the SlideDropTarget.

The default value is false.

statusSourceproperty 
protected var statusSource:Class

The class from EveDefaultImagery for the required or remove image next to the list in the stack when used inside the SlideDropTarget.

The default value is null.

useSlideGroupColorproperty 
public var useSlideGroupColor:Boolean = false

When true the color value is passed from the parent to this renderer and that color is used as the circle background color. If this is set to false the color attribute of the data passed into the control is used instead.

The default value is false.

Constructor detail
SlideDropTargetItemRenderer()constructor
public function SlideDropTargetItemRenderer()

Constructor.

Method detail
createChildren()method
protected override function createChildren():void
createSlide()method 
protected function createSlide():SlideItemRenderer

Pops an item renderer from the freeItemRenderers array. Otherwise a new one is created.

Returns
SlideItemRenderer — Returns an item renderer to use in the component
getVisibleImages()method 
public function getVisibleImages(l:Number, r:Number):Object

Returns the images visible in this item renderer that are inbetween the specified x coordinates.

Returns 0 if there are no images in this renderer. Returns the integer of the number that is on the image if there is only one image in the renderer. Otherwise it returns an Array of the first and last number on the image that is viewable if there are multiple images in the renderer.

Parameters
l:Number — The left most x coordinate
 
r:Number — The right most x coordinate

Returns
Object
remove()method 
protected function remove(e:MouseEvent):void

Dispatches a PreCallModuleEvent.REMOVE_SLIDE event if the slide isn't a "Must Have" slide.

Parameters
e:MouseEvent — The mouse click event
removeSlide()method 
protected function removeSlide():void

Removes a slide from the createdRenderers array and adds it to the freeItemRenderers array and also removes it from the display list.

Event detail
removeSlideevent 
Event object type: at.events.PreCallModuleEvent