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.guvnor.client.decisiontable.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private SafeHtml getSafeHtml(final DeleteRowAuditLogEntry event) {
    SafeHtmlBuilder sb = new SafeHtmlBuilder();
    sb.append(TEMPLATE
            .commentHeader(Constants.INSTANCE.DecisionTableAuditLogDeleteRowAt0(event.getRowIndex() + 1)));
    return sb.toSafeHtml();
}

From source file:org.drools.guvnor.client.decisiontable.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private SafeHtml getSafeHtml(final DeleteColumnAuditLogEntry event) {
    SafeHtmlBuilder sb = new SafeHtmlBuilder();
    sb.append(TEMPLATE
            .commentHeader(Constants.INSTANCE.DecisionTableAuditLogDeleteColumn0(event.getColumnHeader())));
    return sb.toSafeHtml();
}

From source file:org.drools.guvnor.client.decisiontable.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final ColumnDetails details, final SafeHtmlBuilder sb) {
    if (details instanceof AttributeColumnDetails) {
        buildColumnDetailsInsert((AttributeColumnDetails) details, sb);
    } else if (details instanceof MetadataColumnDetails) {
        buildColumnDetailsInsert((MetadataColumnDetails) details, sb);
    } else if (details instanceof ConditionColumnDetails) {
        buildColumnDetailsInsert((ConditionColumnDetails) details, sb);
    } else if (details instanceof LimitedEntryConditionColumnDetails) {
        buildColumnDetailsInsert((LimitedEntryConditionColumnDetails) details, sb);
    } else if (details instanceof ActionInsertFactColumnDetails) {
        buildColumnDetailsInsert((ActionInsertFactColumnDetails) details, sb);
    } else if (details instanceof LimitedEntryActionInsertFactColumnDetails) {
        buildColumnDetailsInsert((LimitedEntryActionInsertFactColumnDetails) details, sb);
    } else if (details instanceof ActionSetFieldColumnDetails) {
        buildColumnDetailsInsert((ActionSetFieldColumnDetails) details, sb);
    } else if (details instanceof LimitedEntryActionSetFieldColumnDetails) {
        buildColumnDetailsInsert((LimitedEntryActionSetFieldColumnDetails) details, sb);
    } else {/* w ww.  ja  va2 s  .co m*/
        sb.append(TEMPLATE.commentHeader(
                Constants.INSTANCE.DecisionTableAuditLogInsertColumn0(details.getColumnHeader())));
    }
}

From source file:org.drools.guvnor.client.decisiontable.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final AttributeColumnDetails details, final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE
            .commentHeader(Constants.INSTANCE.DecisionTableAuditLogInsertAttribute0(details.getAttribute())));
}

From source file:org.drools.guvnor.client.decisiontable.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

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

From source file:org.drools.guvnor.client.decisiontable.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final ConditionColumnDetails details, final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader2Details(
            Constants.INSTANCE.DecisionTableAuditLogInsertCondition0(details.getColumnHeader()),
            Constants.INSTANCE.FieldColon(), nil(details.getFactField()), Constants.INSTANCE.OperatorColon(),
            nil(details.getOperator())));
}

From source file:org.drools.guvnor.client.decisiontable.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final LimitedEntryConditionColumnDetails details,
        final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader3Details(
            Constants.INSTANCE.DecisionTableAuditLogInsertCondition0(details.getColumnHeader()),
            Constants.INSTANCE.FieldColon(), nil(details.getFactField()), Constants.INSTANCE.OperatorColon(),
            nil(details.getOperator()), Constants.INSTANCE.ValueColon(),
            nilLimitedEntryValue(details.getValue())));
}

From source file:org.drools.guvnor.client.decisiontable.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final ActionInsertFactColumnDetails details, final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader2Details(
            Constants.INSTANCE.DecisionTableAuditLogInsertActionInsertFact0(details.getColumnHeader()),
            Constants.INSTANCE.FactTypeColon(), nil(details.getFactType()), Constants.INSTANCE.FieldColon(),
            nil(details.getFactField())));
}

From source file:org.drools.guvnor.client.decisiontable.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final LimitedEntryActionInsertFactColumnDetails details,
        final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader3Details(
            Constants.INSTANCE.DecisionTableAuditLogInsertActionInsertFact0(details.getColumnHeader()),
            Constants.INSTANCE.FactTypeColon(), nil(details.getFactType()), Constants.INSTANCE.FieldColon(),
            nil(details.getFactField()), Constants.INSTANCE.ValueColon(),
            nilLimitedEntryValue(details.getValue())));
}

From source file:org.drools.guvnor.client.decisiontable.widget.auditlog.AuditLogEntryCellHelper.java

License:Apache License

private void buildColumnDetailsInsert(final ActionSetFieldColumnDetails details, final SafeHtmlBuilder sb) {
    sb.append(TEMPLATE.commentHeader2Details(
            Constants.INSTANCE.DecisionTableAuditLogInsertActionSetField0(details.getColumnHeader()),
            Constants.INSTANCE.BoundVariableColon(), nil(details.getBoundName()),
            Constants.INSTANCE.FieldColon(), nil(details.getFactField())));
}