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

Quick Search    Search Deep

samples.swing.timesheet.model
Class PersonModel  view PersonModel download PersonModel.java

java.lang.Object
  extended byorg.scopemvc.model.basic.BasicModel
      extended bysamples.swing.timesheet.model.PersonModel
All Implemented Interfaces:
org.scopemvc.core.ModelChangeEventSource, org.scopemvc.core.ModelChangeListener, org.scopemvc.core.ModelChangeTypes

public class PersonModel
extends org.scopemvc.model.basic.BasicModel

Simple Person model which allows them to enter a name

Since:
Scope0.8 v1.0
Version:
$Revision: 1.2 $ $Date: 2002/01/12 09:35:42 $

Field Summary
private  java.lang.String name
           
static org.scopemvc.core.Selector NAME
           
private  java.util.List projects
           
static org.scopemvc.core.Selector PROJECTS
           
private  TimesheetModel timesheet
           
static org.scopemvc.core.Selector TIMESHEET
           
 
Fields inherited from class org.scopemvc.model.basic.BasicModel
 
Fields inherited from interface org.scopemvc.core.ModelChangeTypes
ACCESS_CHANGED, VALUE_ADDED, VALUE_CHANGED, VALUE_REMOVED
 
Constructor Summary
PersonModel()
           
 
Method Summary
 void addProject(java.lang.String inProject)
           
 void clearProjects()
           
 java.lang.String getName()
           
 java.util.List getProjects()
           
 TimesheetModel getTimesheet()
           
 void removeProject(java.lang.String inProject)
           
 void setName(java.lang.String inName)
           
 
Methods inherited from class org.scopemvc.model.basic.BasicModel
addModelChangeListener, fireModelChange, listenNewSubmodel, makeActive, modelChanged, removeModelChangeListener, unlistenOldSubmodel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final org.scopemvc.core.Selector NAME

PROJECTS

public static final org.scopemvc.core.Selector PROJECTS

TIMESHEET

public static final org.scopemvc.core.Selector TIMESHEET

name

private java.lang.String name

projects

private java.util.List projects

timesheet

private TimesheetModel timesheet
Constructor Detail

PersonModel

public PersonModel()
Method Detail

setName

public void setName(java.lang.String inName)

getName

public java.lang.String getName()

getProjects

public java.util.List getProjects()

clearProjects

public void clearProjects()

addProject

public void addProject(java.lang.String inProject)
                throws org.scopemvc.core.ControlException

removeProject

public void removeProject(java.lang.String inProject)

getTimesheet

public TimesheetModel getTimesheet()