org.nakedobjects.example.expenses
Class Expense

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

public class Expense
extends AbstractNakedObject

See Also:
Serialized Form

Constructor Summary
Expense()
           
 
Method Summary
 About aboutActionAuthorise()
           
 About aboutActionDisallow()
           
 void actionAuthorise()
           
 void actionDisallow()
           
static Expense actionNewExpenseItem(Claim forClaim)
           
static Expense actionNewExpenseItem(Project forProject)
           
 void associateClaim(Claim claim)
           
 void created()
          hook method - fully specified in the interface
 void dissociateClaim(Claim claim)
           
static java.lang.String fieldOrder()
           
 Money getAmount()
           
 Claim getClaim()
           
 TextString getDescription()
           
 Project getProject()
           
 Receipt getReceipt()
           
 TextString getStatus()
           
 boolean isValid()
          By default an object is always in a valid state.
 void setClaim(Claim newClaim)
           
 void setProject(Project newProject)
           
 void setReceipt(Receipt receipt)
           
 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, 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

Expense

public Expense()
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

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

getAmount

public Money getAmount()

actionNewExpenseItem

public static Expense actionNewExpenseItem(Claim forClaim)

aboutActionAuthorise

public About aboutActionAuthorise()

actionAuthorise

public void actionAuthorise()

aboutActionDisallow

public About aboutActionDisallow()

actionDisallow

public void actionDisallow()

actionNewExpenseItem

public static Expense actionNewExpenseItem(Project forProject)

associateClaim

public void associateClaim(Claim claim)

dissociateClaim

public void dissociateClaim(Claim claim)

getClaim

public Claim getClaim()

setClaim

public void setClaim(Claim newClaim)

getReceipt

public Receipt getReceipt()

setReceipt

public void setReceipt(Receipt receipt)

getProject

public Project getProject()

setProject

public void setProject(Project newProject)

getStatus

public TextString getStatus()

isValid

public boolean isValid()
Description copied from class: AbstractNakedObject
By default an object is always in a valid state.

Specified by:
isValid in interface Naked
Overrides:
isValid in class AbstractNakedObject

getDescription

public TextString getDescription()