public void setSelected(boolean selected) { this.selected = selected; SafeHtml html = TEMPLATE.menuItem( selected ? MarkersResource.INSTANCE.menuItemSelected() : MarkersResource.INSTANCE.menuItem(), SafeStylesUtils.forTrustedBackgroundColor(markerStyle.getBackgroundColor()), label); setHTML(html); }
@Override public StylesBuilder trustedBackgroundColor(String value) { return delegate.styleProperty(SafeStylesUtils.forTrustedBackgroundColor(value)); }