Package org.wicketstuff.minis.model
Class ReplacingResourceModel
- java.lang.Object
-
- org.wicketstuff.minis.model.ReplacingResourceModel
-
- All Implemented Interfaces:
Serializable,IComponentAssignedModel<String>,IDetachable,IModel<String>,IClusterable
public class ReplacingResourceModel extends Object implements IComponentAssignedModel<String>
The ReplacingResourceModel is used to replaced other keys marked up like ${key} with their corresponding values in the given key.The replacing mechanism also uses the default way to get the localized String.
Example:
key1=value of key1 key2=value of key2 contains ${key1} Label label = new Label("label",new ReplacingResourceModel("key2")); <span wicket:id="label"><span> Output: value of key2 contains value of key1- Author:
- Tobias Soloschenko
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReplacingResourceModel(String resourceKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetObject()IWrapModel<String>wrapOnAssignment(Component component)
-
-
-
Constructor Detail
-
ReplacingResourceModel
public ReplacingResourceModel(String resourceKey)
-
-
Method Detail
-
getObject
public String getObject()
- Specified by:
getObjectin interfaceIModel<String>- See Also:
IModel.getObject()
-
wrapOnAssignment
public IWrapModel<String> wrapOnAssignment(Component component)
- Specified by:
wrapOnAssignmentin interfaceIComponentAssignedModel<String>- See Also:
IComponentAssignedModel.wrapOnAssignment(org.apache.wicket.Component)
-
-