View Javadoc

1   package org.neuclear.ledger.browser;
2   
3   /*
4    *  The NeuClear Project and it's libraries are
5    *  (c) 2002-2004 Antilles Software Ventures SA
6    *  For more information see: http://neuclear.org
7    *
8    *  This library is free software; you can redistribute it and/or
9    *  modify it under the terms of the GNU Lesser General Public
10   *  License as published by the Free Software Foundation; either
11   *  version 2.1 of the License, or (at your option) any later version.
12   *
13   *  This library is distributed in the hope that it will be useful,
14   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16   *  Lesser General Public License for more details.
17   *
18   *  You should have received a copy of the GNU Lesser General Public
19   *  License along with this library; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21   */
22  
23  import org.neuclear.ledger.Book;
24  
25  /***
26   * User: pelleb
27   * Date: Dec 30, 2003
28   * Time: 4:26:52 PM
29   */
30  public abstract class PortfolioBrowser implements Browser {
31      public PortfolioBrowser(Book book) {
32          this.book = book;
33      }
34  
35  
36      protected final void setRow(String ledger, int count, double balance) {
37          this.ledger = ledger;
38          this.count = count;
39          this.balance = balance;
40      }
41  
42      public Book getBook() {
43          return book;
44      }
45  
46      public String getLedger() {
47          return ledger;
48      }
49  
50      public int getCount() {
51          return count;
52      }
53  
54      public double getBalance() {
55          return balance;
56      }
57  
58      private final Book book;
59      protected String ledger;
60      private int count;
61      private double balance;
62  }