Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/clra/web/RowingSessionTypeBean.java


1   /*
2    * Copyright (c) Carnegie Lake Rowing Association 2002. All rights reserved.
3    * Distributed under the GPL license. See doc/COPYING.
4    * $RCSfile: RowingSessionTypeBean.java,v $
5    * $Date: 2003/02/26 03:38:46 $
6    * $Revision: 1.3 $
7    */
8   
9   package com.clra.web;
10  
11  import com.clra.rowing.RowingSessionType;
12  import java.io.Serializable;
13  import java.rmi.RemoteException;
14  import java.util.ArrayList;
15  import java.util.Iterator;
16  
17  /**
18   * Represents the type of a rowing session.
19   *
20   * @version $Id: RowingSessionTypeBean.java,v 1.3 2003/02/26 03:38:46 rphall Exp $
21   * @author <a href="mailto:rphall@pluto.njcc.com">Rick Hall</a>
22   */
23  public class RowingSessionTypeBean implements Iterator, Serializable {
24  
25    private final static ArrayList list = new ArrayList();
26    static {
27  
28      String label = Text.getMessage( "rowingtype.practice" );
29      LabelValueBean lvb =
30        new LabelValueBean( label, RowingSessionType.PRACTICE.getName() );
31      list.add( lvb );
32  
33      label = Text.getMessage( "rowingtype.regatta" );
34      lvb = new LabelValueBean( label, RowingSessionType.REGATTA.getName() );
35      list.add( lvb );
36  
37    } // static
38  
39    private final Iterator iterator = list.iterator();
40  
41    public boolean hasNext() {
42      return iterator.hasNext();
43    }
44  
45    public Object next() {
46      return iterator.next();
47    }
48  
49    /* @exception UnsupportedOperationException always thrown */
50    public void remove() {
51      throw new UnsupportedOperationException( "remove not supported" );
52    }
53  
54  } // RowingSessionTypeBean
55  
56  /*
57   * $Log: RowingSessionTypeBean.java,v $
58   * Revision 1.3  2003/02/26 03:38:46  rphall
59   * Added copyright and GPL license
60   *
61   * Revision 1.2  2002/02/18 18:07:10  rphall
62   * Ran dos2unix to remove ^M (carriage return) from end of lines
63   *
64   * Revision 1.1.1.1  2002/01/03 21:57:28  rphall
65   * Initial load, 5th try, Jan-03-2002 4:57 PM
66   *
67   * Revision 1.1  2001/12/01 14:06:05  rphall
68   * JSP bean
69   *
70   */
71