Example usage for org.apache.wicket.model StringResourceModel setParameters

List of usage examples for org.apache.wicket.model StringResourceModel setParameters

Introduction

In this page you can find the example usage for org.apache.wicket.model StringResourceModel setParameters.

Prototype

public StringResourceModel setParameters(Object... parameters) 

Source Link

Document

Sets the parameters used for substitution.

Usage

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);
}