@Override public void addProperty(EntryDto dto) { if (dto.getValue().toLowerCase().startsWith("http")) { Anchor a = new Anchor(); a.setTarget("_blank"); a.setHref(dto.getValue()); a.setText(dto.getValue()); properties.addProperty(new Label(dto.getKey()), a.asWidget()); } else { properties.addProperty(dto.getKey(), dto.getValue()); } }
@Override public void clearProperties() { properties.clearProperties(); properties.setBordered(false); properties.setCondensed(true); properties.setZebra(true); properties.setKeyStyleNames("span3 small-indent"); properties.addStyleName("small-dual-indent"); properties.addStyleName("top-margin"); }