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

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

public class SourcesPage.SourceModel
extends AbstractReadOnlyModel<java.lang.String>

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.String getObject()
          Returns the contents of the file loaded from the classpath.
 
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.SourceModel

public SourcesPage.SourceModel()
Constructor.

Method Detail

getObject

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

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


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