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

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

public class SourcesPage.SourceModel
extends AbstractReadOnlyModel

Model for retrieving the source code from the classpath of a packaged resource.

See Also:
Serialized Form

Constructor Summary
SourcesPage.SourceModel()
          Constructor.
 
Method Summary
 java.lang.Object getObject()
          Returns the contents of the file loaded from the classpath.
 
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
 

Constructor Detail

SourcesPage.SourceModel

public SourcesPage.SourceModel()
Constructor.

Method Detail

getObject

public java.lang.Object getObject()
Returns the contents of the file loaded from the classpath.

Specified by:
getObject in interface IModel
Specified by:
getObject in class AbstractReadOnlyModel
Returns:
the contents of the file identified by name
See Also:
IModel.getObject()


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