@DomEvent(value="connect-web-component") public static class WebComponentUI.WebComponentConnectEvent extends ComponentEvent<UI>
source
Constructor and Description |
---|
WebComponentConnectEvent(UI source,
boolean fromClient,
String tag,
String webComponentElementId,
String userAssignedId,
elemental.json.JsonObject attributeValues)
Creates a new web component connection event.
|
Modifier and Type | Method and Description |
---|---|
elemental.json.JsonObject |
getAttributeJson()
Gets the initial attribute values.
|
String |
getTag()
Gets the tag of the element to connect.
|
String |
getWebComponentElementId()
Gets the id of the web component.
|
String |
getWebComponentUserAssignedId()
Gets the user-assigned id of the web component.
|
getSource, isFromClient, unregisterListener
toString
public WebComponentConnectEvent(UI source, boolean fromClient, @EventData(value="tag") String tag, @EventData(value="id") String webComponentElementId, @EventData(value="userAssignedId") String userAssignedId, @EventData(value="attributeValues") elemental.json.JsonObject attributeValues)
source
- the component that was attachedfromClient
- true
if the event was originally fired on the
client, false
if the event originates from
server-side logictag
- the tag of the element to connectwebComponentElementId
- the id of the embedded web componentuserAssignedId
- the id user might have set on the embedding web component
elementattributeValues
- initial attribute values as a JsonObject. If present,
these will override the default value designated by the
WebComponentExporter
but only for this instance.public String getTag()
public String getWebComponentElementId()
public String getWebComponentUserAssignedId()
public elemental.json.JsonObject getAttributeJson()
Copyright © 2020. All rights reserved.