Packageorg.juicekit.visual.renderers
Classpublic class RendererBase
InheritanceRendererBase Inheritance mx.core.UIComponent
Implementsmx.controls.listClasses.IDropInListItemRenderer, mx.controls.listClasses.IListItemRenderer, mx.core.IDataRenderer
SubclassesFlareControlBase, MovieClipControlBase, NumberRendererBase

The class RendererBase provides a common implementation of IDataRenderer, IListItemRenderer, and IDropInListItemRenderer for custom ActionScript renderers. The class is only intended to be used as a base implementation for custom renderers and is not intended to be directly instantiated.



Public Properties
 PropertyDefined by
  data : Object
Implement the IDataRenderer interface.
RendererBase
  listData : BaseListData
Implement the IDropInListItemRenderer interface.
RendererBase
Protected Properties
 PropertyDefined by
  dataPropertyChanged : Boolean = false
Indicated whether the data property was changed.
RendererBase
Public Methods
 MethodDefined by
  
Constructor.
RendererBase
Protected Methods
 MethodDefined by
  
Reset the dataPropertyChanged and invalidate the display list.
RendererBase
Events
 EventSummaryDefined by
   Dispatched when the data property changes.RendererBase
Property detail
dataproperty
data:Object  [read-write]

Implement the IDataRenderer interface.

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

Implementation
    public function get data():Object
    public function set data(value:Object):void
dataPropertyChangedproperty 
protected var dataPropertyChanged:Boolean = false

Indicated whether the data property was changed. This property is intended to be used when overriding the commitProperties function.

listDataproperty 
listData:BaseListData  [read-write]

Implement the IDropInListItemRenderer interface.

Implementation
    public function get listData():BaseListData
    public function set listData(value:BaseListData):void
Constructor detail
RendererBase()constructor
public function RendererBase()

Constructor.

Method detail
commitProperties()method
protected override function commitProperties():void

Reset the dataPropertyChanged and invalidate the display list.

Event detail
dataChangeevent 
Event object type: mx.events.FlexEvent

Dispatched when the data property changes.

When you use a component as an item renderer, the data property contains the data to display. You can listen for this event and update the component when the data property changes.