wicket.model
Class ResourceModel
java.lang.Object
wicket.model.AbstractModel
wicket.model.AbstractReadOnlyModel
wicket.model.ResourceModel
- All Implemented Interfaces:
- java.io.Serializable, IDetachable, IModel
public class ResourceModel
- extends AbstractReadOnlyModel
A model that represents a localized resource string. This is a lightweight
version of the StringResourceModel. It lacks parameter
substitutions, but is generaly easier to use.
- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
|
Constructor Summary |
ResourceModel(java.lang.String resourceKey)
Constructor |
ResourceModel(java.lang.String resourceKey,
java.lang.String defaultValue)
Constructor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ResourceModel
public ResourceModel(java.lang.String resourceKey)
- Constructor
- Parameters:
resourceKey - key of the resource this model represents
ResourceModel
public ResourceModel(java.lang.String resourceKey,
java.lang.String defaultValue)
- Constructor
- Parameters:
resourceKey - key of the resource this model representsdefaultValue - value that will be returned if resource does not exist
getObject
public java.lang.Object getObject(Component component)
- Description copied from interface:
IModel
- Gets the model object.
- Specified by:
getObject in interface IModel- Specified by:
getObject in class AbstractReadOnlyModel
- Parameters:
component - The component which wants to get a model Object
- Returns:
- The model object
- See Also:
AbstractReadOnlyModel.getObject(wicket.Component)
Copyright © 2004-2007 Wicket developers. All Rights Reserved.