use of org.openremote.app.client.assets.attributes.AbstractAttributeViewExtension in project openremote by openremote.
the class AbstractAssetActivity method createAttributeView.
protected AttributeView createAttributeView(AssetAttribute attribute) {
AttributeViewImpl attributeView = new AttributeViewImpl(environment, view.getStyle(), attribute);
attributeView.setAttributeActions(createAttributeActions(attribute, attributeView));
List<AbstractAttributeViewExtension> extensions = createAttributeExtensions(attribute, attributeView);
if (extensions != null && !extensions.isEmpty()) {
extensions.forEach(this::linkAttributeView);
}
attributeView.setAttributeExtensions(extensions);
linkAttributeView(attributeView);
return attributeView;
}
Aggregations