Class SweetDevRia.Hookable
Defined in: Hooking.js.
Constructor Attributes | Constructor Name and Description |
---|---|
This is the Hookable component "interface"
|
Method Attributes | Method Name and Description |
---|---|
close()
Every hookable component MUST override this method to get closed on parent request
|
|
Return the hooker of a component, or null if none have been computed or found
|
|
Return the hooker id of a component, or null if none have been computed or set yet.
|
|
hasHookedComp(compId)
Function checking if a component is hooked or not (PopupManager)
|
|
move(dx, dy)
Every hookable component MUST override this method to get moved on parent request
|
|
setHookerId(id)
Set a custom component id as hooker for this component (if not computable on server side).
|
|
Function trying to hook (initializing the hook)
|
Class Detail
SweetDevRia.Hookable(id)
This is the Hookable component "interface"
- Parameters:
- {String} id
- Id of this hookable SweetDEV RIA component
Method Detail
close()
Every hookable component MUST override this method to get closed on parent request
{RiaComponent}
getHooker()
Return the hooker of a component, or null if none have been computed or found
- Returns:
- the container component for this one, or null if none have been found or computed yet
{String}
getHookerId()
Return the hooker id of a component, or null if none have been computed or set yet.
- Returns:
- the hooker id of a component, or null if none have been computed or set yet.
hasHookedComp(compId)
Function checking if a component is hooked or not (PopupManager)
- Parameters:
- compId
move(dx, dy)
Every hookable component MUST override this method to get moved on parent request
- Parameters:
- {int} dx
- delta X to move the component to
- {int} dy
- delta Y to move the component to
setHookerId(id)
Set a custom component id as hooker for this component (if not computable on server side).
This id will then be initialized on next tryHooking call.
- Parameters:
- {String} id
- the id of the SweetDEV RIA component hooking this one
tryHooking()
Function trying to hook (initializing the hook)