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

Quick Search    Search Deep

samples.helloworld2
Class Hello2Model  view Hello2Model download Hello2Model.java

java.lang.Object
  extended bysamples.helloworld2.Hello2Model

public class Hello2Model
extends java.lang.Object

Hello2Controller 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
Hello2Model()
           
 
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

Hello2Model

public Hello2Model()
Method Detail

setName

public void setName(java.lang.String inName)

getName

public java.lang.String getName()

changeNameToFred

public void changeNameToFred()