List of usage examples for com.google.gwt.safehtml.shared SafeHtmlBuilder append
public SafeHtmlBuilder append(SafeHtml html)
From source file:org.drools.guvnor.client.decisiontable.cells.PopupNumericByteEditCell.java
License:Apache License
@Override public void render(Context context, Byte value, SafeHtmlBuilder sb) { if (value != null) { sb.append(renderer.render(value.toString())); }//from w w w . j a v a 2s .c om }
From source file:org.drools.guvnor.client.decisiontable.cells.PopupNumericDoubleEditCell.java
License:Apache License
@Override public void render(Context context, Double value, SafeHtmlBuilder sb) { if (value != null) { sb.append(renderer.render(value.toString())); }/*from w ww . ja v a2 s.c o m*/ }
From source file:org.drools.guvnor.client.decisiontable.cells.PopupNumericFloatEditCell.java
License:Apache License
@Override public void render(Context context, Float value, SafeHtmlBuilder sb) { if (value != null) { sb.append(renderer.render(value.toString())); }/*from w ww . ja va2s . c om*/ }
From source file:org.drools.guvnor.client.decisiontable.cells.PopupNumericIntegerEditCell.java
License:Apache License
@Override public void render(Context context, Integer value, SafeHtmlBuilder sb) { if (value != null) { sb.append(renderer.render(value.toString())); }/* w w w .java 2s . co m*/ }
From source file:org.drools.guvnor.client.decisiontable.cells.PopupNumericLongEditCell.java
License:Apache License
@Override public void render(Context context, Long value, SafeHtmlBuilder sb) { if (value != null) { sb.append(renderer.render(value.toString())); }/*from w ww . j av a 2 s . c om*/ }
From source file:org.drools.guvnor.client.decisiontable.cells.PopupNumericShortEditCell.java
License:Apache License
@Override public void render(Context context, Short value, SafeHtmlBuilder sb) { if (value != null) { sb.append(renderer.render(value.toString())); }/*from ww w. j a v a 2s.c o m*/ }
From source file:org.drools.guvnor.client.decisiontable.cells.PopupValueListDropDownEditCell.java
License:Apache License
@Override public void render(Context context, String value, SafeHtmlBuilder sb) { //Render value if (value != null) { String label = getLabel(value); sb.append(renderer.render(label)); }/* ww w . j ava 2s. c o m*/ }
From source file:org.drools.guvnor.client.decisiontable.cells.RowNumberCell.java
License:Apache License
@Override public void render(Context context, Integer value, SafeHtmlBuilder sb) { if (value != null) { sb.append(SafeHtmlUtils.fromTrustedString(value.toString())); }/*from www . j a v a2 s .co m*/ }
From source file:org.drools.guvnor.client.decisiontable.widget.auditlog.AuditLogEntryCell.java
License:Apache License
@Override public void render(Context context, AuditLogEntry value, SafeHtmlBuilder sb) { if (value == null) { return;/*www . java2 s.com*/ } //Audit Log entry type and date final String eventTypeDisplayText = AuditLogEntryCellHelper.getEventTypeDisplayText(value.getGenericType()); final String whenWhoDisplayText = Constants.INSTANCE.AuditLogEntryOn1(format.format(value.getDateOfEntry()), value.getUserName()); sb.append(TEMPLATE.entrySummary(eventTypeDisplayText, whenWhoDisplayText)); //Audit Log entry detail sb.append(helper.getSafeHtml(value)); }
From source file:org.drools.guvnor.client.decisiontable.widget.auditlog.AuditLogEntryCellHelper.java
License:Apache License
private SafeHtml getSafeHtml(final InsertRowAuditLogEntry event) { SafeHtmlBuilder sb = new SafeHtmlBuilder(); sb.append(TEMPLATE .commentHeader(Constants.INSTANCE.DecisionTableAuditLogInsertRowAt0(event.getRowIndex() + 1))); return sb.toSafeHtml(); }