org.riotfamily.forms.controller
Class AjaxResponse
java.lang.Object
org.riotfamily.forms.controller.AjaxResponse
- All Implemented Interfaces:
- FormListener
public class AjaxResponse
- extends Object
- implements FormListener
FormListener implementation used by the
AjaxFormController
to
notify the client of structural changes. It creates a JSON response that
contains the modifications to be performed on the client side DOM.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AjaxResponse
public AjaxResponse(HttpServletResponse response)
throws IOException
- Throws:
IOException
elementChanged
public void elementChanged(Element element)
- Specified by:
elementChanged
in interface FormListener
elementValidated
public void elementValidated(Element element)
- Specified by:
elementValidated
in interface FormListener
elementRemoved
public void elementRemoved(Element element)
- Specified by:
elementRemoved
in interface FormListener
elementAdded
public void elementAdded(Element element)
- Specified by:
elementAdded
in interface FormListener
elementFocused
public void elementFocused(Element element)
- Specified by:
elementFocused
in interface FormListener
elementEnabled
public void elementEnabled(Element element)
- Specified by:
elementEnabled
in interface FormListener
elementRendered
public void elementRendered(Element element)
- Specified by:
elementRendered
in interface FormListener
refresh
public void refresh(Element element)
- Specified by:
refresh
in interface FormListener
alert
public void alert(String message)
close
public void close()