Package com.adobe.flex.extras.controls.springgraph
Interface public interface IViewFactory

Defines an object that knows how to create views for Items.



Public Methods
  Method Defined by
   
getView(item:Item):UIComponent
Create a UIComponent to represent a given Item in a SpringGraph.
IViewFactory
Method detail
getView () method
public function getView(item:Item):UIComponent

Create a UIComponent to represent a given Item in a SpringGraph. The returned UIComponent should be a unique instance dedicated to that Item. This function might return a unique view component on each call, or it might cache views and return the same view if called repeatedly for the same item. This function may return different classes of object based on the type or data of the Item.

Parameters
item:Item — an item for which y

Returns
UIComponent — a unique UIComponent to represent the Item. This component must also implement the IDataRenderer interface. It's OK to return null.