creamtec.webcream.gui
Class DefaultJComponentUpdater

java.lang.Object
  extended by creamtec.webcream.gui.DefaultComponentUpdater
      extended by creamtec.webcream.gui.DefaultJComponentUpdater
All Implemented Interfaces:
ComponentUpdater

public class DefaultJComponentUpdater
extends DefaultComponentUpdater

Updates Swing components with values received from HTTP request


Constructor Summary
DefaultJComponentUpdater()
           
 
Method Summary
 void postUpdateComponent(java.awt.Component comp, HttpRequestData data, ActionData actionData)
          Called by WebCream 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 to the component
 boolean updateComponent(java.awt.Component comp, HttpRequestData data, ActionData actionData)
          Updates component with the value received in the http request
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJComponentUpdater

public DefaultJComponentUpdater()
Method Detail

updateComponent

public boolean updateComponent(java.awt.Component comp,
                               HttpRequestData data,
                               ActionData actionData)
                        throws java.lang.Exception
Updates component with the value received in the http request

Specified by:
updateComponent in interface ComponentUpdater
Overrides:
updateComponent in class DefaultComponentUpdater
Parameters:
comp - Component
data - HttpRequestData
actionData - ActionData
Returns:
true to iterate children of the component, false to go to the next sibling
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 to the component

Overrides:
setValue in class DefaultComponentUpdater
Parameters:
comp - Component
value - the value to be assigned to the component
data - HTTP request data
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 WebCream after the component and it's subtree of children has been updated

Specified by:
postUpdateComponent in interface ComponentUpdater
Overrides:
postUpdateComponent in class DefaultComponentUpdater


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