| Package | com.yworks.graph.model |
| Class | public class DefaultRowLookup |
| Inheritance | DefaultRowLookup DefaultItemLookup Object |
IRow's
lookup() method.
| Method | Defined By | ||
|---|---|---|---|
DefaultRowLookup(item:IRow = null)
Creates a new instance with the given row as context. | DefaultRowLookup | ||
![]() | lookup(type:Class):Object
Returns an instance that implements the given type or null. | DefaultItemLookup | |
![]() | lookupForItem(item:Object, type:Class):Object
Tries to create or retrieve an implementation of the given type
for a given item. | DefaultItemLookup | |
![]() | setItem(item:IModelItem):void
Sets the context item. | DefaultItemLookup | |
![]() | setNext(next:IContextLookup):void
This method is called by the framework to register the fallback lookup implementation
that should be used during a call to IContextLookup.lookup(). | DefaultItemLookup | |
| Method | Defined By | ||
|---|---|---|---|
[override]
Subclasses need to override this method. | DefaultRowLookup | ||
| DefaultRowLookup | () | Constructor |
public function DefaultRowLookup(item:IRow = null)Creates a new instance with the given row as context.
Parametersitem:IRow (default = null) — The row as context.
|
| itemLookup | () | method |
override protected function itemLookup(item:IModelItem, type:Class, nextLookup:ILookup, lastLookup:ILookup):ObjectSubclasses 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.
|
Object — An implementation of type or null.
|