Package | Description |
---|---|
org.apache.wicket.migrate | |
org.apache.wicket.model |
Core model support for Wicket components.
|
Modifier and Type | Method and Description |
---|---|
static StringResourceModel |
StringResourceModelMigration.of(String resourceKey,
Component component,
IModel<?> model,
Object... parameters)
Deprecated.
use 'inline method' to get rid of the deprecation warning and complete the
migration to Wicket 7 API.
Original JavaDoc:
Creates a new string resource model using the supplied parameters.
The relative component parameter should generally be supplied, as without it resources can not be obtained from resource bundles that are held relative to a particular component or page. However, for application that use only global resources then this parameter may be null. The model parameter is also optional and only needs to be supplied if value substitutions are to take place on either the resource key or the actual resource strings. The parameters parameter is also optional and is used for substitutions. |
static StringResourceModel |
StringResourceModelMigration.of(String resourceKey,
Component component,
IModel<?> model,
String defaultValue,
Object... parameters)
Deprecated.
use 'inline method' to get rid of the deprecation warning and complete the
migration to Wicket 7 API.
|
static StringResourceModel |
StringResourceModelMigration.of(String resourceKey,
IModel<?> model,
Object... parameters)
Deprecated.
use 'inline method' to get rid of the deprecation warning and complete the
migration to Wicket 7 API.
|
static StringResourceModel |
StringResourceModelMigration.of(String resourceKey,
IModel<?> model,
String defaultValue,
Object... parameters)
Deprecated.
use 'inline method' to get rid of the deprecation warning and complete the
migration to Wicket 7 API.
|
Modifier and Type | Method and Description |
---|---|
StringResourceModel |
StringResourceModel.setDefaultValue(IModel<String> defaultValue)
Sets the default value if the resource key is not found.
|
StringResourceModel |
StringResourceModel.setDefaultValue(String defaultValue)
Sets the default value if the resource key is not found.
|
StringResourceModel |
StringResourceModel.setModel(IModel<?> model)
Sets the model used for property substitutions.
|
StringResourceModel |
StringResourceModel.setParameters(Object... parameters)
Sets the parameters used for substitution.
|
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.