Class FormSequence

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

public class FormSequence extends Object
A container for a sequence of forms.

  • Constructor Details

  • Method Details

    • 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

      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.