junit.extensions.awt
Interface Resolver

All Known Implementing Classes:
Script

public interface Resolver

Interface to support management of a set of component references.


Method Summary
 ComponentReference addComponent(java.awt.Component comp)
          Add a new component to the existing collection.
 ComponentReference getComponentReference(java.awt.Component comp)
          Return the existing reference for the given component, or null if none exists.
 ComponentReference getComponentReference(java.lang.String refid)
          Convert the reference ID into a component reference.
 java.util.Collection getComponentReferences()
          Returns a collection of all the existing references.
 java.lang.String getUniqueID(ComponentReference ref)
          Derive a unique identifier for the given reference.
 

Method Detail

getComponentReference

public ComponentReference getComponentReference(java.lang.String refid)
                                         throws ComponentNotFoundException
Convert the reference ID into a component reference.

getComponentReference

public ComponentReference getComponentReference(java.awt.Component comp)
Return the existing reference for the given component, or null if none exists.

addComponent

public ComponentReference addComponent(java.awt.Component comp)
Add a new component to the existing collection.

getUniqueID

public java.lang.String getUniqueID(ComponentReference ref)
Derive a unique identifier for the given reference.

getComponentReferences

public java.util.Collection getComponentReferences()
Returns a collection of all the existing references.