Class GovProFx.BudgetEntry

java.lang.Object
GovProFx.BudgetEntry
Enclosing class:
GovProFx

public static class GovProFx.BudgetEntry extends Object
Model class representing a single budget record.

This class is used by the TableView to display budget codes, descriptions, and monetary amounts.

Version:
1.0
  • Constructor Details

    • BudgetEntry

      public BudgetEntry(String code, String name, BigDecimal amount)
      Constructs a new BudgetEntry.
      Parameters:
      code - the account code
      name - the description of the entry
      amount - the monetary amount
  • Method Details

    • getCode

      public String getCode()
      Returns the budget account code.
      Returns:
      the budget account code
    • getName

      public String getName()
      Returns the description of the entry.
      Returns:
      the description of the entry
    • getAmount

      public BigDecimal getAmount()
      Returns the monetary amount.
      Returns:
      the monetary amount
    • setAmount

      public void setAmount(BigDecimal amount)
      Updates the monetary amount of this entry.
      Parameters:
      amount - the new monetary amount