List of usage examples for org.apache.wicket.model StringResourceModel setParameters
public StringResourceModel setParameters(Object... parameters)
From source file:com.axway.ats.testexplorer.pages.model.NavigatorLabel.java
License:Apache License
/** * @param id/*from ww w . j ava2s . c om*/ * component id * @param table * pageable view */ public NavigatorLabel(final String id, final DataGrid table, String whatIsShowing) { super(id); if (whatIsShowing == null) { whatIsShowing = ""; } StringResourceModel stringResourceMode = new StringResourceModel("NavigatorLabel", this, new Model(new LabelModelObject(table))); stringResourceMode.setParameters(whatIsShowing + " from ${from} to ${to} (of ${of})"); setDefaultModel(stringResourceMode); }