Packagecom.yworks.graph.model
Classpublic class DefaultRowLookup
InheritanceDefaultRowLookup Inheritance DefaultItemLookup Inheritance Object

This is the default implementation of an IRow's lookup() method.



Protected Properties
 PropertyDefined By
 Inheriteditem : IModelItem
[read-only] Gets the context item.
DefaultItemLookup
Public Methods
 MethodDefined By
  
DefaultRowLookup(item:IRow = null)
Creates a new instance with the given row as context.
DefaultRowLookup
 Inherited
lookup(type:Class):Object
Returns an instance that implements the given type or null.
DefaultItemLookup
 Inherited
lookupForItem(item:Object, type:Class):Object
Tries to create or retrieve an implementation of the given type for a given item.
DefaultItemLookup
 Inherited
setItem(item:IModelItem):void
Sets the context item.
DefaultItemLookup
 Inherited
This method is called by the framework to register the fallback lookup implementation that should be used during a call to IContextLookup.lookup().
DefaultItemLookup
Protected Methods
 MethodDefined By
  
itemLookup(item:IModelItem, type:Class, nextLookup:ILookup, lastLookup:ILookup):Object
[override] Subclasses need to override this method.
DefaultRowLookup
Constructor Detail
DefaultRowLookup()Constructor
public function DefaultRowLookup(item:IRow = null)

Creates a new instance with the given row as context.

Parameters
item:IRow (default = null) — The row as context.
Method Detail
itemLookup()method
override protected function itemLookup(item:IModelItem, type:Class, nextLookup:ILookup, lastLookup:ILookup):Object

Subclasses need to override this method.

Parameters

item:IModelItem — The context item to lookup an implementation for.
 
type:Class — The type of the implementation to find.
 
nextLookup:ILookup — The lookup to use for another type.
 
lastLookup:ILookup — The lookup to use as a fallback for the type.

Returns
Object — An implementation of type or null.