Class HtmlDiffModel
java.lang.Object
org.apache.wicket.model.LoadableDetachableModel<String>
org.hippoecm.frontend.plugins.standards.diff.HtmlDiffModel
- All Implemented Interfaces:
Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.model.IModel<String>
,org.apache.wicket.util.io.IClusterable
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This model ensures the value is surrounded with ..value.. This is required by the DiffHelper.diffHtml method. -
Constructor Summary
ConstructorDescriptionHtmlDiffModel
(org.apache.wicket.model.IModel<String> original, org.apache.wicket.model.IModel<String> current) Create a HtmlDiffModel using the default HTML diff serviceHtmlDiffModel
(org.apache.wicket.model.IModel<String> original, org.apache.wicket.model.IModel<String> current, DiffService diffService) Create the model using a predefined diff service. -
Method Summary
Methods inherited from class org.apache.wicket.model.LoadableDetachableModel
getObject, isAttached, of, onAttach, onDetach, setObject, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.wicket.model.IModel
as, combineWith, filter, flatMap, isPresent, map, orElse, orElseGet
-
Constructor Details
-
HtmlDiffModel
public HtmlDiffModel(org.apache.wicket.model.IModel<String> original, org.apache.wicket.model.IModel<String> current) Create a HtmlDiffModel using the default HTML diff service- Parameters:
original
-current
-- See Also:
-
HtmlDiffModel
public 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.- Parameters:
original
-current
-diffService
- if it's null, the default HTML diff service is used (seeDefaultHtmlDiffService
)- See Also:
-
-
Method Details
-
load
- Specified by:
load
in classorg.apache.wicket.model.LoadableDetachableModel<String>
-
detach
public void detach()
-