junit.extensions.jfcunit.finder
Class JInternalFrameFinder

java.lang.Object
  extended byjunit.extensions.jfcunit.finder.Finder
      extended byjunit.extensions.jfcunit.finder.ComponentFinder
          extended byjunit.extensions.jfcunit.finder.JInternalFrameFinder

public class JInternalFrameFinder
extends ComponentFinder

Title: class JInternalFrameFinder.

Description:

Copyright: Copyright (c) 2003

Company:

Version:
1.0
Author:
not attributable

Field Summary
private  java.lang.String m_title
          Title of the frame.
 
Fields inherited from class junit.extensions.jfcunit.finder.ComponentFinder
 
Fields inherited from class junit.extensions.jfcunit.finder.Finder
OP_CONTAINS, OP_ENDSWITH, OP_EQUALS, OP_MATCH, OP_STARTSWITH
 
Constructor Summary
JInternalFrameFinder(java.lang.String title, boolean ignoreCase)
          Constructor for the internal frame finder.
 
Method Summary
 java.awt.Component find(java.awt.Container cont, int index)
          Find the DeskTop then search the desktops for the internal frame with the given name.
 java.lang.String getTitle()
          Get the title to be matched.
 void setTitle(java.lang.String title)
          Set the title to be matched.
 
Methods inherited from class junit.extensions.jfcunit.finder.ComponentFinder
getComponentClass, setComponentClass, testComponent
 
Methods inherited from class junit.extensions.jfcunit.finder.Finder
createPatternMatcher, evaluate, find, find, find, findAll, findAll, findAll, findAll, findComponentList, getDebug, getDefaultWait, getOperation, getOperation, getOperationString, getShowDebug, getWait, isCaseIndependent, isValidForProcessing, matchPattern, matchPattern, matchPattern, pause, recreatePatternMatcher, setCaseIndependent, setDebug, setDefaultWait, setIgnoreVisibility, setOperation, setShowDebug, setWait
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_title

private java.lang.String m_title
Title of the frame.

Constructor Detail

JInternalFrameFinder

public JInternalFrameFinder(java.lang.String title,
                            boolean ignoreCase)
Constructor for the internal frame finder.

Parameters:
title - Title of the frame.
ignoreCase - Ignore the case if true.
Method Detail

setTitle

public final void setTitle(java.lang.String title)
Set the title to be matched.

Parameters:
title - to be matched.

getTitle

public final java.lang.String getTitle()
Get the title to be matched.

Returns:
title to be matched.

find

public java.awt.Component find(java.awt.Container cont,
                               int index)
Find the DeskTop then search the desktops for the internal frame with the given name.

Overrides:
find in class Finder
Parameters:
cont - Container to be searched.
index - Index of the matching internal frames to return.
Returns:
The Internal Frame which matches at the given index.


Licensed under: GNU Lesser General Public License, Ver 2.1, February 1999