org.uispec4j.interception
Class WindowHandler

java.lang.Object
  extended byorg.uispec4j.interception.WindowHandler

public abstract class WindowHandler
extends Object

Interface used for defining modal dialog handlers.

See Also:
WindowInterceptor, Intercepting windows

Constructor Summary
protected WindowHandler()
           
protected WindowHandler(String stepName)
          Gives a name to the handler, for description purposes only.
 
Method Summary
 String getName()
           
abstract  Trigger process(Window window)
          Handles the shown window and returns a trigger that will close it.
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowHandler

protected WindowHandler()

WindowHandler

protected WindowHandler(String stepName)
Gives a name to the handler, for description purposes only. The name is used to clarify the test code, and it will be used by UISpec4J when displaying error messages.

Method Detail

process

public abstract Trigger process(Window window)
                         throws Exception
Handles the shown window and returns a trigger that will close it.

Throws:
Exception

getName

public String getName()

setName

public void setName(String name)


Copyright © 2004-2007 Design-up. All Rights Reserved.