org.apache.wicket.examples.source
Class SourcesPage.SourceModel
java.lang.Object
org.apache.wicket.model.AbstractReadOnlyModel<String>
org.apache.wicket.examples.source.SourcesPage.SourceModel
- All Implemented Interfaces:
- Serializable, IClusterable, IDetachable, IModel<String>
- Enclosing class:
- SourcesPage
public class SourcesPage.SourceModel
- extends AbstractReadOnlyModel<String>
Model for retrieving the source code from the classpath of a packaged resource.
- See Also:
- Serialized Form
Method Summary |
String |
getObject()
Returns the contents of the file loaded from the classpath. |
SourcesPage.SourceModel
public SourcesPage.SourceModel()
- Constructor.
getObject
public String getObject()
- Returns the contents of the file loaded from the classpath.
- Specified by:
getObject
in interface IModel<String>
- Specified by:
getObject
in class AbstractReadOnlyModel<String>
- Returns:
- the contents of the file identified by name
- See Also:
IModel.getObject()
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.