Example usage for com.google.gwt.safehtml.shared SafeHtmlBuilder append

List of usage examples for com.google.gwt.safehtml.shared SafeHtmlBuilder append

Introduction

In this page you can find the example usage for com.google.gwt.safehtml.shared SafeHtmlBuilder append.

Prototype

public SafeHtmlBuilder append(SafeHtml html) 

Source Link

Document

Appends the contents of another SafeHtml object, without applying HTML-escaping to it.

Usage

From source file:org.drools.workbench.screens.guided.dtable.client.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final MetadataColumnDetails details, final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader(
            GuidedDecisionTableConstants.INSTANCE.DecisionTableAuditLogInsertMetadata0(details.getMetadata())));
}

From source file:org.drools.workbench.screens.guided.dtable.client.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final ConditionColumnDetails details, final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader2Details(
            GuidedDecisionTableConstants.INSTANCE
                    .DecisionTableAuditLogInsertCondition0(details.getColumnHeader()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Field())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getFactField()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Operator())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getOperator()), labelClass, valueClass));
}

From source file:org.drools.workbench.screens.guided.dtable.client.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final LimitedEntryConditionColumnDetails details,
        final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader3Details(
            GuidedDecisionTableConstants.INSTANCE
                    .DecisionTableAuditLogInsertCondition0(details.getColumnHeader()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Field())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getFactField()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Operator())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getOperator()),//from  www. jav a 2 s. com
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Value())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nilLimitedEntryValue(details.getValue()), labelClass, valueClass));
}

From source file:org.drools.workbench.screens.guided.dtable.client.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final ActionInsertFactColumnDetails details, final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader2Details(
            GuidedDecisionTableConstants.INSTANCE
                    .DecisionTableAuditLogInsertActionInsertFact0(details.getColumnHeader()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.FactType())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getFactType()),/*ww w.j  a  v a 2s.c om*/
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Field())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getFactField()), labelClass, valueClass));
}

From source file:org.drools.workbench.screens.guided.dtable.client.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final LimitedEntryActionInsertFactColumnDetails details,
        final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader3Details(
            GuidedDecisionTableConstants.INSTANCE
                    .DecisionTableAuditLogInsertActionInsertFact0(details.getColumnHeader()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.FactType())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getFactType()),// w ww  .ja  v a2 s .c o m
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Field())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getFactField()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Value())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nilLimitedEntryValue(details.getValue()), labelClass, valueClass));
}

From source file:org.drools.workbench.screens.guided.dtable.client.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final ActionSetFieldColumnDetails details, final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader2Details(
            GuidedDecisionTableConstants.INSTANCE
                    .DecisionTableAuditLogInsertActionSetField0(details.getColumnHeader()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.BoundVariable())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getBoundName()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Field())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getFactField()), labelClass, valueClass));
}

From source file:org.drools.workbench.screens.guided.dtable.client.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final LimitedEntryActionSetFieldColumnDetails details,
        final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader3Details(
            GuidedDecisionTableConstants.INSTANCE
                    .DecisionTableAuditLogInsertActionSetField0(details.getColumnHeader()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.BoundVariable())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getBoundName()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Field())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getFactField()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Value())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nilLimitedEntryValue(details.getValue()), labelClass, valueClass));
}

From source file:org.drools.workbench.screens.guided.dtable.client.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final ActionWorkItemColumnDetails details, final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader(GuidedDecisionTableConstants.INSTANCE
            .DecisionTableAuditLogInsertWorkItemExecuteColumn0(details.getColumnHeader())));
    if (details.getParameters().size() > 0) {
        sb.append(SafeHtmlUtils.fromTrustedString("<table>"));
        sb.append(TEMPLATE.commentRow(nil(GuidedDecisionTableConstants.INSTANCE.WorkItemNameColon()),
                nil(details.getName()), labelClass, valueClass));
        for (Map.Entry<String, PortableParameterDefinition> e : details.getParameters().entrySet()) {
            sb.append(TEMPLATE.commentRow(
                    new StringBuilder(nil(e.getKey())).append(GuidedDecisionTableConstants.COLON).toString(),
                    nil(e.getValue()), labelClass, valueClass));
        }//www  .j  a v a2 s.c  om
        sb.append(SafeHtmlUtils.fromTrustedString("</table>"));
    }
}

From source file:org.drools.workbench.screens.guided.dtable.client.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final ActionWorkItemInsertFactColumnDetails details,
        final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader4Details(
            GuidedDecisionTableConstants.INSTANCE
                    .DecisionTableAuditLogInsertWorkItemInsertFactColumn0(details.getColumnHeader()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.FactType())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getFactType()),// w  ww .  j  a  v  a  2  s .c o m
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Field())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getFactField()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.WorkItemNameColon()).toString(),
            nil(details.getWorkItemName()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.WorkItemParameterNameColon()).toString(),
            nil(details.getWorkItemResultParameterName()), labelClass, valueClass));
}

From source file:org.drools.workbench.screens.guided.dtable.client.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final ActionWorkItemSetFieldColumnDetails details,
        final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader4Details(
            GuidedDecisionTableConstants.INSTANCE
                    .DecisionTableAuditLogInsertWorkItemSetFieldColumn0(details.getColumnHeader()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.BoundVariable())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getBoundName()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Field())
                    .append(GuidedDecisionTableConstants.COLON).toString(),
            nil(details.getFactField()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.WorkItemNameColon()).toString(),
            nil(details.getWorkItemName()),
            new StringBuilder(GuidedDecisionTableConstants.INSTANCE.WorkItemParameterNameColon()).toString(),
            nil(details.getWorkItemResultParameterName()), labelClass, valueClass));
}