Package | weavejs.core |
Class | public class LinkablePlaceholder |
Inheritance | LinkablePlaceholder ![]() ![]() ![]() |
Method | Defined By | ||
---|---|---|---|
LinkablePlaceholder(classDef:Class) | LinkablePlaceholder | ||
![]() | addDisposeCallback(relevantContext:Object, callback:Function, allowDelay:Boolean = false):void | CallbackCollection | |
![]() | addGroupedCallback(relevantContext:Object, groupedCallback:Function, triggerCallbackNow:Boolean = false, delayWhileBusy:Boolean = true):void | CallbackCollection | |
![]() | addImmediateCallback(relevantContext:Object, callback:Function, runCallbackNow:Boolean = false, alwaysCallLast:Boolean = false):void | CallbackCollection | |
![]() | delayCallbacks():void | CallbackCollection | |
![]() | detectChanges():void
This function may be called to detect change to a non-primitive session state in case it has been modified externally. | LinkableVariable | |
![]() | dispose():void [override] | LinkableVariable | |
getClass():Class | LinkablePlaceholder | ||
getClass(object:Object):Class [static]
A utility function for getting the class definition from LinkablePlaceholders as well as regular objects. | LinkablePlaceholder | ||
LinkablePlaceholder | |||
![]() | getSessionState():Object | LinkableVariable | |
![]() | getSessionStateType():Class
The type restriction passed in to the constructor. | LinkableVariable | |
![]() | lock():void
Call this function when you do not want to allow any more changes to the value of this sessioned property. | LinkableVariable | |
![]() | removeCallback(relevantContext:Object, callback:Function):void | CallbackCollection | |
replaceInstanceWithPlaceholder(instance:ILinkableObject):void [static] | LinkablePlaceholder | ||
![]() | resumeCallbacks():void | CallbackCollection | |
setInstance(instance:ILinkableObject):void | LinkablePlaceholder | ||
[static]
Replaces a LinkablePlaceholder with an instance of the expected type. | LinkablePlaceholder | ||
setSessionState(value:Object):void [override] | LinkablePlaceholder | ||
![]() | triggerCallbacks():void | CallbackCollection | |
![]() | verifyValue(value:Object):Boolean
This function will verify if a given value is a valid session state for this linkable variable. | LinkableVariable | |
whenReady(relevantContext:ILinkableObject, possiblePlaceholder:ILinkableObject, onReady:Function):void [static]
Calls a function after a placeholder has been replaced with an instance and the instance session state has been initialized. | LinkablePlaceholder |
LinkablePlaceholder | () | Constructor |
public function LinkablePlaceholder(classDef:Class)
classDef:Class |
getClass | () | method |
public function getClass():Class
ReturnsClass |
getClass | () | method |
public static function getClass(object:Object):Class
A utility function for getting the class definition from LinkablePlaceholders as well as regular objects.
Parameters
object:Object — An object, which may be null.
|
Class — The class definition, or null if the object was null.
|
getInstance | () | method |
replaceInstanceWithPlaceholder | () | method |
public static function replaceInstanceWithPlaceholder(instance:ILinkableObject):void
Parameters
instance:ILinkableObject |
setInstance | () | method |
setInstance | () | method |
public static function setInstance(possiblePlaceholder:ILinkableObject, instance:ILinkableObject):void
Replaces a LinkablePlaceholder with an instance of the expected type.
Parameters
possiblePlaceholder:ILinkableObject — A LinkablePlaceholder or the instance object if it has already been placed.
| |
instance:ILinkableObject — An instance of the type of object that the placeholder is expecting.
|
setSessionState | () | method |
override public function setSessionState(value:Object):void
Parameters
value:Object |
whenReady | () | method |
public static function whenReady(relevantContext:ILinkableObject, possiblePlaceholder:ILinkableObject, onReady:Function):void
Calls a function after a placeholder has been replaced with an instance and the instance session state has been initialized. The onReady function will be called immediately if possiblePlaceholder is not a LinkablePlaceholder.
Parameters
relevantContext:ILinkableObject — The relevantContext parameter passed to ICallbackCollection.addDisposeCallback().
| |
possiblePlaceholder:ILinkableObject — Either a LinkablePlaceholder or another ILinkableObject.
| |
onReady:Function — The function to call.
|