com.creamtec.ajaxswing.gui.html
Class DefaultComponentUpdater

java.lang.Object
  extended by com.creamtec.ajaxswing.gui.html.DefaultComponentUpdater
All Implemented Interfaces:
ComponentUpdater
Direct Known Subclasses:
DefaultJComponentUpdater

public class DefaultComponentUpdater
extends java.lang.Object
implements ComponentUpdater

The default implementation of setting the request values to AWT components


Constructor Summary
DefaultComponentUpdater()
           
 
Method Summary
 void postUpdateComponent(java.awt.Component comp, HttpRequestData data, ActionData actionData)
          Called by AjaxSwing after the component and it's subtree of children has been updated
 void setValue(java.awt.Component comp, java.lang.Object value, HttpRequestData data, ActionData actionData)
          Sets the value of the component to the given value
 boolean updateComponent(java.awt.Component comp, HttpRequestData data, ActionData actionData)
          Checks and if needed updates the component with the value obtained from the request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComponentUpdater

public DefaultComponentUpdater()
Method Detail

updateComponent

public boolean updateComponent(java.awt.Component comp,
                               HttpRequestData data,
                               ActionData actionData)
                        throws java.lang.Exception
Checks and if needed updates the component with the value obtained from the request. If the component requires action emulation (for instance, Button requires a click) it is stored in the action data.

Specified by:
updateComponent in interface ComponentUpdater
Parameters:
comp - Component
data - HttpRequestData
actionData - ActionData
Returns:
true to continue updating the container hierarchy, false to stop
Throws:
java.lang.Exception

setValue

public void setValue(java.awt.Component comp,
                     java.lang.Object value,
                     HttpRequestData data,
                     ActionData actionData)
              throws java.lang.Exception
Sets the value of the component to the given value

Parameters:
comp - Component
value - Object
actionData - ActionData
Throws:
java.lang.Exception

postUpdateComponent

public void postUpdateComponent(java.awt.Component comp,
                                HttpRequestData data,
                                ActionData actionData)
Description copied from interface: ComponentUpdater
Called by AjaxSwing after the component and it's subtree of children has been updated

Specified by:
postUpdateComponent in interface ComponentUpdater


Copyright © 2000-2008 CreamTec LLC. All Rights Reserved.