org.nakedobjects.example.expenses
Class Claim

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

public class Claim
extends AbstractNakedObject

See Also:
Serialized Form

Constructor Summary
Claim()
           
 
Method Summary
 About aboutActionAuthoriseClaim()
           
 About aboutActionPayClaim()
           
 Claim actionAuthoriseClaim()
           
static Claim actionNewClaim(Employee forEmployee)
           
 Expense actionNewExpenseItem(Project forProject)
           
 void actionPayClaim()
           
 void associateClaimant(Employee claimant)
           
 void associateExpenses(Expense expenseItem)
           
 void created()
          hook method - fully specified in the interface
 Money deriveTotal()
           
 void dissociateClaimant(Employee claimant)
           
 void dissociateExpenses(Expense expenseItem)
           
static java.lang.String fieldOrder()
           
 Employee getClaimant()
           
 InternalCollection getExpenses()
           
 TextString getStatus()
           
 void setClaimant(Employee newClaimant)
           
 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

Claim

public Claim()
Method Detail

fieldOrder

public static java.lang.String fieldOrder()

setClaimant

public void setClaimant(Employee newClaimant)

getClaimant

public Employee getClaimant()

getExpenses

public InternalCollection getExpenses()

actionNewClaim

public static Claim actionNewClaim(Employee forEmployee)

getStatus

public TextString getStatus()

aboutActionAuthoriseClaim

public About aboutActionAuthoriseClaim()

aboutActionPayClaim

public About aboutActionPayClaim()

actionAuthoriseClaim

public Claim actionAuthoriseClaim()

actionNewExpenseItem

public Expense actionNewExpenseItem(Project forProject)

actionPayClaim

public void actionPayClaim()

associateClaimant

public void associateClaimant(Employee claimant)

associateExpenses

public void associateExpenses(Expense expenseItem)

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

deriveTotal

public Money deriveTotal()

dissociateClaimant

public void dissociateClaimant(Employee claimant)

dissociateExpenses

public void dissociateExpenses(Expense expenseItem)

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