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

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

public class SourcesPage.PackagedResourcesModel
extends AbstractReadOnlyModel
implements IDetachable

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.lang.Object 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, getObject, setObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.wicket.model.IDetachable
detach
 

Constructor Detail

SourcesPage.PackagedResourcesModel

public SourcesPage.PackagedResourcesModel()
Constructor.

Method Detail

onDetach

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


getObject

public java.lang.Object getObject()
Returns the list of resources found in the package of the page.

Specified by:
getObject in interface IModel
Specified by:
getObject in class AbstractReadOnlyModel
Returns:
the list of resources found in the package of the page.
See Also:
IModel.getObject()


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.