private static String getPinStyle() { final StringBuilder pinBtnStyle = new StringBuilder(SPUIComponentProvider.getPinButtonStyle()); pinBtnStyle.append(' '); pinBtnStyle.append(SPUIStyleDefinitions.DIST_PIN); pinBtnStyle.append(' '); pinBtnStyle.append(SPUIStyleDefinitions.DIST_PIN_BLUE); return pinBtnStyle.toString(); }
private static void applyPinStyle(final Button eventBtn) { final StringBuilder style = new StringBuilder(SPUIComponentProvider.getPinButtonStyle()); style .append(' ') .append(SPUIStyleDefinitions.DIST_PIN) .append(' ') .append("tablePin") .append(' ') .append("pin-icon-red"); eventBtn.setStyleName(style.toString()); }