abbot.script
Interface UIContext

All Known Implementing Classes:
Appletviewer, Fixture, Launch

public interface UIContext

Provides generic support to set up and tear down a UI context or fixture.


Method Summary
 boolean equivalent(UIContext context)
           
 ClassLoader getContextClassLoader()
           
 Hierarchy getHierarchy()
          A context must maintain the same Hierarchy for the lifetime of the fixture.
 boolean isLaunched()
           
 void launch(StepRunner runner)
          Launch this context.
 void terminate()
          Terminate this context.
 

Method Detail

getContextClassLoader

ClassLoader getContextClassLoader()
Returns:
A ClassLoader providing access to classes in this context.

launch

void launch(StepRunner runner)
            throws Throwable
Launch this context. If any UIContext is extant, this UIContext should terminate it before launching. If this context is already launched, this method should do nothing.

Throws:
Throwable

isLaunched

boolean isLaunched()
Returns:
Whether this UIContext is currently launched.

terminate

void terminate()
Terminate this context. All UI components found in the Hierarchy returned by getHierarchy() will be disposed.


equivalent

boolean equivalent(UIContext context)
Returns:
Whether this UIContext is equivalent to another.

getHierarchy

Hierarchy getHierarchy()
A context must maintain the same Hierarchy for the lifetime of the fixture.



Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge