Interface LComponentManagementRegistry
- All Known Implementing Classes:
LDefaultComponentManagementRegistry
public interface LComponentManagementRegistry
Used for tracking components (on the client).
Links components from server (Java) and client (JS) so that they can be reused and/or manipulated after creation.
-
Method Summary
Modifier and TypeMethodDescription<C extends LComponent<C>>
CCreates the component on the client side and tracks it.voidclearAll()Clears all tracked elements.clientComponentJsAccessor(LComponent<?> component) Returns an expression to access the component on the client with JavaScriptcom.vaadin.flow.component.page.PendingJavaScriptResultWrapper forElement.executeJs(String, Object...).voidTries to free up unused components on the client.default <C extends LComponent<C>>
voidremove(C component) Callsremove(LComponent, boolean)withfreeUpClientWhenNoMatch = true<C extends LComponent<C>>
voidremove(C component, boolean freeUpClientWhenNoMatch) Removes the tracked component from the client.writeOptions(LComponentOptions<?> options) writeOptionsOptionalNextParameter(LComponentOptions<?> options) writeOptionsOrEmptyObject(LComponentOptions<?> options)
-
Method Details
-
writeOptionsOptionalNextParameter
-
writeOptions
-
writeOptionsOrEmptyObject
-
add
<C extends LComponent<C>> C add(C component, String jsConstructorCallExpression, Object... parameters) Creates the component on the client side and tracks it. -
clientComponentJsAccessor
Returns an expression to access the component on the client with JavaScript -
execJs
Wrapper forElement.executeJs(String, Object...). Usage is normally not recommended however there are some corner cases where it's required. -
remove
Callsremove(LComponent, boolean)withfreeUpClientWhenNoMatch = true- See Also:
-
remove
Removes the tracked component from the client. If the component can't be foundfreeUpClient()is called when specified. -
freeUpClient
void freeUpClient()Tries to free up unused components on the client. -
clearAll
void clearAll()Clears all tracked elements.
-