Referencer

Helper class that allows you to set and unset references to components.

Description

The Referencer class allows you to set and unset references to components.

Static methods

setReferences

Sets references to multiple components.

To set references, components must implement the IReferenceable interface. If they don’t, the call to this method has no effect.

static void setReferences(IReferences references, List components)

  • references: IReferences - references to be set.
  • component: List - list of components to set the references to.

setReferencesForOne

Sets references to a specific component.

To set references, components must implement the IReferenceable interface. If they don’t, the call to this method has no effect.

static void setReferencesForOne(IReferences references, component)

  • references: IReferences - references to be set.
  • component: dynamic - component to set references to.

unsetReferences

Unsets references in multiple components. To unset references, components must implement the IUnreferenceable interface. If they don’t, the call to this method has no effect.

static void unsetReferences(List components)

  • components: List - list of components whose references must be cleared.

unsetReferencesForOne

Unsets references in a specific component.

To unset references, components must implement the IUnreferenceable interface. If they don’t, the call to this method has no effect.

static void unsetReferencesForOne(component)

  • component: dynamic - component to unset references.

See also