creamtec.webcream.gui
Interface ComponentUpdater

All Known Implementing Classes:
CustomControlProcessor, DefaultComponentUpdater, DefaultJComponentUpdater, SnapshotUpdater

public interface ComponentUpdater

Used to set data from the HTML page to the corresponding UI component. WebCream uses ComponentUpdaters when it receives data from submitted HTML page. It iterates all components of the current window and find ComponentUpdater for each of the components. If no ComponentUpdater is specified in the properties file for the given component class, the DefaultJComponentUpdater is used.


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
 boolean updateComponent(java.awt.Component comp, HttpRequestData data, ActionData actionData)
          Called by WebCream engine to set the data submitted by the browser to the component
 

Method Detail

updateComponent

boolean updateComponent(java.awt.Component comp,
                        HttpRequestData data,
                        ActionData actionData)
                        throws java.lang.Exception
Called by WebCream engine to set the data submitted by the browser to the component

Parameters:
comp - component that should be updated
data - data submitted by the browser. The data for each component depends on how it was represeted in HTML by ComponentRenderer
actionData - data structure that controls how the action will be emulated
Returns:
if component is a container, returning true will instruct the engine to continue processing container's children; returning false will instruct it to go to the next sibling
Throws:
java.lang.Exception

postUpdateComponent

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

Parameters:
comp -
data -
actionData -


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