Search in sources :

Example 1 with AbstractAttributeViewExtension

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;
}
Also used : AbstractAttributeViewExtension(org.openremote.app.client.assets.attributes.AbstractAttributeViewExtension) AttributeViewImpl(org.openremote.app.client.assets.attributes.AttributeViewImpl)

Aggregations

AbstractAttributeViewExtension (org.openremote.app.client.assets.attributes.AbstractAttributeViewExtension)1 AttributeViewImpl (org.openremote.app.client.assets.attributes.AttributeViewImpl)1