public class ElementRegistry
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
registerElement(java.lang.String id,
Element element)
Registers an element with its ID.
|
static Element |
requestElement(java.lang.String id)
Gets the element registered with an ID.
|
public static void registerElement(java.lang.String id, Element element)
The given element is weakly referenced.
id
- the ID.element
- the element.