Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

samples.helloworld
Class HelloModel  view HelloModel download HelloModel.java

java.lang.Object
  extended bysamples.helloworld.HelloModel

public class HelloModel
extends java.lang.Object

HelloController uses one of these to supply data for its Views, and to keep session state in. In this case there's just a single String field that users populate with their name.

Scope's default ModelManager implementation builds on the JavaBeans API, so this model object is just a normal JavaBean.

Version:
$Revision: 1.2 $ $Date: 2002/01/12 09:35:41 $

Field Summary
private  java.lang.String name
           
 
Constructor Summary
HelloModel()
           
 
Method Summary
 java.lang.String getName()
           
 void setName(java.lang.String inName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Constructor Detail

HelloModel

public HelloModel()
Method Detail

setName

public void setName(java.lang.String inName)

getName

public java.lang.String getName()