Interface FormComponentVisitor


public interface FormComponentVisitor
An object that visits form components.

Usage:

class Visitor implements FormComponentVisitor {
    public boolean visit(FormComponent comp) {
        // do something
        return true;
    }
}

FormModel model = ...;
model.accept(new Visitor());
Since:
3.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Visits the given form component.
  • Method Details

    • visit

      boolean visit(FormComponent comp)
      Visits the given form component.
      Parameters:
      comp - The form component.
      Returns:
      true to continue visiting following form components or false to cancel visiting.