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

Quick Search    Search Deep

samples.helloworld3
Class Hello3Model  view Hello3Model download Hello3Model.java

java.lang.Object
  extended bysamples.helloworld3.Hello3Model

public class Hello3Model
extends java.lang.Object

Hello3Controller 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
Hello3Model()
           
 
Method Summary
 void changeNameToFred()
           
 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

Hello3Model

public Hello3Model()
Method Detail

setName

public void setName(java.lang.String inName)

getName

public java.lang.String getName()

changeNameToFred

public void changeNameToFred()