Class: ElementUpdateDelegate

requiem~ui.ElementUpdateDelegate

Delegate for managing update calls of a Requiem Element.

Constructor

new ElementUpdateDelegate(delegate)

Parameters:
Name Type Description
delegate Element The Requiem Element instance of which this ElementUpdateDelgate instance manages.
Source:

Members

(static, constant) DEFAULT_REFRESH_RATE :number

Default refresh (debounce) rate in milliseconds.
Type:
  • number
Source:

Methods

destroy()

Destroys this ElementUpdateDelegate instance.
Source:

init()

Initializes this ElementUpdateDelegate instance. Must manually invoke.
Source:

initResponsiveness()

Sets up the responsiveness to the provided conductor. Only the following event types support a custom conductor; the rest uses window as the conductor: 1. EventType.OBJECT.SCROLL 2. EventType.MISC.WHEEL 3. EventType.MOUSE_MOUSE_MOVE
Parameters:
Type Attributes Description
Object | Number | args This could be the conductor (defaults to window if unspecified), refresh rate (defaults to the default value if unspecified) or the EventType(s).
number | args Either the refresh rate (defaults to the default value if unspecified) or the EventType(s).
args <repeatable>
EventType(s) which the delegate will respond to.
Source:

isDirty(dirtyType) → {boolean}

Checks dirty status of a given dirty type.
Parameters:
Name Type Description
dirtyType number [description]
Source:
Returns:
Type
boolean

setDirty(dirtyType)

Sets a dirty type as dirty.
Parameters:
Name Type Description
dirtyType number
Source:

update()

Handler invoked whenever a visual update is required.
Source: