creamtec.webcream.gui
Class SnapshotUpdater

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

public class SnapshotUpdater
extends java.lang.Object
implements ComponentUpdater

SnapshotUpdater works in conjunction with the SnapshotRenderer, which adds JavaScript mouse listener to the generated images. When a user clicks on an image, the page is submitted and the SnapshotUpdater should be used to emulate the mouse click on the component.


Constructor Summary
SnapshotUpdater()
           
 
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)
          If the action was a mouse click, emulates mouse event for the given component
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapshotUpdater

public SnapshotUpdater()
Method Detail

updateComponent

public boolean updateComponent(java.awt.Component comp,
                               HttpRequestData data,
                               ActionData actionData)
                        throws java.lang.Exception
If the action was a mouse click, emulates mouse event for the given component

Specified by:
updateComponent in interface ComponentUpdater
Parameters:
comp - Component
data - HttpRequestData
actionData - ActionData
Returns:
false to stop processing the hierarchy
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


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