@Override public ImageResource getValue(GlusterHookEntity hookEntity) { if (hookEntity.hasConflicts()) { return resources.alertImage(); } return null; }
@Inject public SubTabNetworkClusterView( SearchableDetailModelProvider< PairQueryable<Cluster, NetworkCluster>, NetworkListModel, NetworkClusterListModel> modelProvider) { super(modelProvider); displayImage = SafeHtmlUtils.fromTrustedString( AbstractImagePrototype.create(resources.networkMonitor()).getHTML()); migrationImage = SafeHtmlUtils.fromTrustedString( AbstractImagePrototype.create(resources.migrationNetwork()).getHTML()); glusterNwImage = SafeHtmlUtils.fromTrustedString( AbstractImagePrototype.create(resources.glusterNetwork()).getHTML()); emptyImage = SafeHtmlUtils.fromTrustedString( AbstractImagePrototype.create(resources.networkEmpty()).getHTML()); managementImage = SafeHtmlUtils.fromTrustedString( AbstractImagePrototype.create(resources.mgmtNetwork()).getHTML()); initTable(); initWidget(getTable()); }