org.uispec4j.interception
Class WindowHandler

java.lang.Object
  extended by org.uispec4j.interception.WindowHandler

public abstract class WindowHandler
extends java.lang.Object

Interface used for defining modal dialog handlers.

See Also:
WindowInterceptor, Intercepting windows

Constructor Summary
protected WindowHandler()
           
protected WindowHandler(java.lang.String stepName)
          Gives a name to the handler, for description purposes only.
 
Method Summary
 java.lang.String getName()
           
abstract  Trigger process(Window window)
          Handles the shown window and returns a trigger that will close it.
 void setName(java.lang.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(java.lang.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 java.lang.Exception
Handles the shown window and returns a trigger that will close it.

Throws:
java.lang.Exception

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)


Copyright © 2004-2010. All Rights Reserved.