creamtec.webcream.gui
Class SnapshotUpdater
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnapshotUpdater
public SnapshotUpdater()
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 - Componentdata - HttpRequestDataactionData - 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.