fc.web.forms
Class FormSequence

java.lang.Object
  extended by fc.web.forms.FormSequence

public class FormSequence
extends Object

A container for a sequence of forms.


Constructor Summary
FormSequence()
           
 
Method Summary
 void add(Form f)
          Adds a form to the sequence
 Form get(String name)
          Returns the form with the specified name or null if a form with that name does not exist
 Form getFirstRemaining()
           
 boolean isDone(Form f)
           
 boolean isFinished()
           
 void setDone(Form form, boolean done)
          specify true to mark the form as done
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormSequence

public FormSequence()
Method Detail

add

public void add(Form f)
Adds a form to the sequence

Throws:
IllegalStateException - if a form with the same name already exists in this sequence.

setDone

public void setDone(Form form,
                    boolean done)
specify true to mark the form as done


isDone

public boolean isDone(Form f)
Returns:
true is the specified form is marked as done.

get

public Form get(String name)
Returns the form with the specified name or null if a form with that name does not exist


getFirstRemaining

public Form getFirstRemaining()
Returns:
the first form which is still not done or null if none are remaining to be done.

isFinished

public boolean isFinished()
Returns:
true is all forms in the sequence are marked as done false otherwise. Also returns false if this sequence contains no forms at all.