org.riotfamily.forms.controller
Class AjaxResponse

java.lang.Object
  extended by 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.


Nested Class Summary
static class AjaxResponse.Action
           
 
Constructor Summary
AjaxResponse(HttpServletResponse response)
           
 
Method Summary
 void alert(String message)
           
 void close()
           
 void elementAdded(Element element)
           
 void elementChanged(Element element)
           
 void elementEnabled(Element element)
           
 void elementFocused(Element element)
           
 void elementRemoved(Element element)
           
 void elementRendered(Element element)
           
 void elementValidated(Element element)
           
 void refresh(Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxResponse

public AjaxResponse(HttpServletResponse response)
             throws IOException
Throws:
IOException
Method Detail

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()