Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tonbeller.wcf.component
Class FormSupport

    java.lang.Object
      com.tonbeller.wcf.component.FormSupport

All Implemented Interfaces:
  Form, FormListener

public class FormSupport
extends java.lang.Object
implements Form

default implementation of `Form`. Ensures that two different `FormSupport` instances may listen to each other without endless recursion.

Author:
  av
See Also:
  `Form`

Constructor Summary
`FormSupport()`

Method Summary
`void` | `addFormListener(FormListener listener)`
`void` | `removeFormListener(FormListener listener)`
`void` | `revert(RequestContext context)` calls revert() on all listeners.
`boolean` | `validate(RequestContext context)` calls validate() on all components

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FormSupport

    public FormSupport()

Method Detail

### validate

    public boolean validate(RequestContext context)

  calls validate() on all components

  Specified by:
    `validate` in interface `FormListener`
  Returns:
    true if validation was successful

### revert

    public void revert(RequestContext context)

  calls revert() on all listeners.

  Specified by:
    `revert` in interface `FormListener`

### addFormListener

    public void addFormListener(FormListener listener)

  Specified by:
    `addFormListener` in interface `Form`

### removeFormListener

    public void removeFormListener(FormListener listener)

  Specified by:
    `removeFormListener` in interface `Form`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD