org.nakedobjects.example.expenses
Class Employee

java.lang.Object
  extended byjava.util.Observable
      extended byorg.nakedobjects.object.AbstractNakedObject
          extended byorg.nakedobjects.example.expenses.Employee
All Implemented Interfaces:
java.io.Externalizable, Naked, NakedObject, java.io.Serializable

public class Employee
extends AbstractNakedObject

See Also:
Serialized Form

Constructor Summary
Employee()
           
 
Method Summary
 void associateProjects(Project project)
           
 void created()
          hook method - fully specified in the interface
 void dissociateProjects(Project project)
           
static java.lang.String fieldOrder()
           
 Account getAccount()
           
 TextString getFirstName()
           
 InternalCollection getProjects()
           
 TextString getSurname()
           
 void setAccount(Account newAccount)
           
 Title title()
          every Naked Object is required to provide a Title by which it is identified to the end user.
 java.lang.String toString()
           
 
Methods inherited from class org.nakedobjects.object.AbstractNakedObject
about, aboutExplorationActionClass, aboutExplorationActionClone, aboutExplorationActionMakePersistent, canClone, contextualTitle, copyObject, createInstance, createInstance, createTransientInstance, deleted, destroy, equals, explorationActionClass, explorationActionClone, explorationActionMakePersistent, getClassHelpText, getClassName, getCollectiveName, getFullClassName, getIconName, getIdString, getNakedClass, getObjectHelpText, getObjectStore, getOid, hashCode, iconImage, init, isEmpty, isFinder, isLookupElement, isPersistent, isResolved, isSameAs, isValid, makeFinder, makePersistent, objectChanged, readExternal, resolve, resolve, setChangedAndNotifyObservers, setOid, setResolved, summary, writeExternal
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.object.NakedObject
addObserver, countObservers, deleteObserver, hasChanged
 

Constructor Detail

Employee

public Employee()
Method Detail

fieldOrder

public static java.lang.String fieldOrder()

created

public void created()
Description copied from class: AbstractNakedObject
hook method - fully specified in the interface

Specified by:
created in interface NakedObject
Overrides:
created in class AbstractNakedObject

associateProjects

public void associateProjects(Project project)

dissociateProjects

public void dissociateProjects(Project project)

getProjects

public InternalCollection getProjects()

title

public Title title()
Description copied from class: AbstractNakedObject
every Naked Object is required to provide a Title by which it is identified to the end user.

Unless overridden, the String representation of this Title object is available through contextualTitle().

Specified by:
title in interface Naked
Overrides:
title in class AbstractNakedObject
See Also:
AbstractNakedObject.contextualTitle()

toString

public java.lang.String toString()
Overrides:
toString in class AbstractNakedObject

getFirstName

public TextString getFirstName()

getAccount

public Account getAccount()

setAccount

public void setAccount(Account newAccount)

getSurname

public TextString getSurname()