FileDocCategorySizeDatePackage
Entries.javaAPI DocGlassfish v2 API3026Fri May 04 22:34:20 BST 2007cal

Entries

public class Entries extends Object

Fields Summary
private Hashtable
entries
private static final String[]
time
public static final int
rows
Constructors Summary
public Entries()


        
   entries = new Hashtable (rows);
   for (int i=0; i < rows; i++) {
     entries.put (time[i], new Entry(time[i]));
   }
  
Methods Summary
public EntrygetEntry(int index)

    return (Entry)this.entries.get(time[index]);
  
public intgetIndex(java.lang.String tm)

    for (int i=0; i<rows; i++)
      if(tm.equals(time[i])) return i;
    return -1;
  
public intgetRows()

    return rows;
  
public voidprocessRequest(javax.servlet.http.HttpServletRequest request, java.lang.String tm)

    int index = getIndex (tm);
    if (index >= 0) {
      String descr = request.getParameter ("description");
      ((Entry)entries.get(time[index])).setDescription (descr);
    }