T - The type of the reference component.public class BaseComponent.ComponentReference<T extends BaseComponent> extends Object implements IElementIdentifier, IEventListener
log| Constructor and Description |
|---|
ComponentReference() |
ComponentReference(Consumer<BaseComponent> onDestroy) |
ComponentReference(T component) |
ComponentReference(T component,
Consumer<BaseComponent> onDestroy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
protected void |
finalize() |
String |
getId()
Returns the id of the referenced component, or null if there is no referenced component.
|
T |
getReference()
Returns the referenced component.
|
void |
onEvent(Event event)
Handle the destroy event.
|
boolean |
setReference(T component)
Sets the referenced component, removing any previous reference.
|
Object |
transformForClient()
Prior to performing the transform, ensure that the referenced component is attached to
the active page.
|
public ComponentReference()
public ComponentReference(T component)
public ComponentReference(Consumer<BaseComponent> onDestroy)
public ComponentReference(T component, Consumer<BaseComponent> onDestroy)
public T getReference()
public boolean setReference(T component)
component - The referenced component.public String getId()
getId in interface IElementIdentifierpublic Object transformForClient()
transformForClient in interface IElementIdentifiertransformForClient in interface IClientTransformpublic void onEvent(Event event)
onEvent in interface IEventListenerevent - The destroy event.Copyright © 2018 Fujion Framework. All rights reserved.