org.apache.wicket.examples.source
Class SourcesPage.PackagedResourcesModel
java.lang.Object
org.apache.wicket.model.AbstractReadOnlyModel<List<String>>
org.apache.wicket.examples.source.SourcesPage.PackagedResourcesModel
- All Implemented Interfaces:
- Serializable, IClusterable, IDetachable, IModel<List<String>>
- Enclosing class:
- SourcesPage
public class SourcesPage.PackagedResourcesModel
- extends AbstractReadOnlyModel<List<String>>
Model for retrieving the contents of a package directory from the class path.
- See Also:
- Serialized Form
Method Summary |
List<String> |
getObject()
Returns the list of resources found in the package of the page. |
protected void |
onDetach()
Clears the list to save space. |
SourcesPage.PackagedResourcesModel
public SourcesPage.PackagedResourcesModel()
- Constructor.
onDetach
protected void onDetach()
- Clears the list to save space.
getObject
public List<String> getObject()
- Returns the list of resources found in the package of the page.
- Specified by:
getObject
in interface IModel<List<String>>
- Specified by:
getObject
in class AbstractReadOnlyModel<List<String>>
- Returns:
- the list of resources found in the package of the page.
- See Also:
IModel.getObject()
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.