public class HtmlDiffModel extends org.apache.wicket.model.LoadableDetachableModel<String>
Modifier and Type | Class and Description |
---|---|
static class |
HtmlDiffModel.ValidHtmlModel
This model ensures the value is surrounded with ..value..
This is required by the DiffHelper.diffHtml method.
|
Constructor and Description |
---|
HtmlDiffModel(org.apache.wicket.model.IModel<String> original,
org.apache.wicket.model.IModel<String> current)
Create a HtmlDiffModel using the default HTML diff service
|
HtmlDiffModel(org.apache.wicket.model.IModel<String> original,
org.apache.wicket.model.IModel<String> current,
DiffService diffService)
Create the model using a predefined diff service.
|
Modifier and Type | Method and Description |
---|---|
void |
detach() |
protected String |
load() |
public HtmlDiffModel(org.apache.wicket.model.IModel<String> original, org.apache.wicket.model.IModel<String> current)
original
- current
- DefaultHtmlDiffService
public HtmlDiffModel(org.apache.wicket.model.IModel<String> original, org.apache.wicket.model.IModel<String> current, DiffService diffService)
original
- current
- diffService
- if it's null, the default HTML diff service is used (see DefaultHtmlDiffService
)DiffService
protected String load()
load
in class org.apache.wicket.model.LoadableDetachableModel<String>
public void detach()
detach
in interface org.apache.wicket.model.IDetachable
detach
in class org.apache.wicket.model.LoadableDetachableModel<String>
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.