org.apache.wicket.examples.source
Class SourcesPage.PackagedResourcesModel

java.lang.Object
  extended by org.apache.wicket.model.AbstractReadOnlyModel<java.util.List<java.lang.String>>
      extended by org.apache.wicket.examples.source.SourcesPage.PackagedResourcesModel
All Implemented Interfaces:
java.io.Serializable, IClusterable, IDetachable, IModel<java.util.List<java.lang.String>>
Enclosing class:
SourcesPage

public class SourcesPage.PackagedResourcesModel
extends AbstractReadOnlyModel<java.util.List<java.lang.String>>

Model for retrieving the contents of a package directory from the class path.

See Also:
Serialized Form

Constructor Summary
SourcesPage.PackagedResourcesModel()
          Constructor.
 
Method Summary
 java.util.List<java.lang.String> getObject()
          Returns the list of resources found in the package of the page.
protected  void onDetach()
          Clears the list to save space.
 
Methods inherited from class org.apache.wicket.model.AbstractReadOnlyModel
detach, setObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourcesPage.PackagedResourcesModel

public SourcesPage.PackagedResourcesModel()
Constructor.

Method Detail

onDetach

protected void onDetach()
Clears the list to save space.


getObject

public java.util.List<java.lang.String> getObject()
Returns the list of resources found in the package of the page.

Specified by:
getObject in interface IModel<java.util.List<java.lang.String>>
Specified by:
getObject in class AbstractReadOnlyModel<java.util.List<java.lang.String>>
Returns:
the list of resources found in the package of the page.
See Also:
IModel.getObject()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.