org.viewaframework.test
Class ComboTrapper

java.lang.Object
  extended by org.viewaframework.test.component.AbstractComponentTrapper<JComboBox>
      extended by org.viewaframework.test.ComboTrapper
All Implemented Interfaces:
ApplicationTrapperAware, ViewTrapperAware, Trapper<JComboBox>

public class ComboTrapper
extends AbstractComponentTrapper<JComboBox>


Constructor Summary
ComboTrapper(ApplicationTrapper applicationTrapper, String componentName)
           
 
Method Summary
 ComboTrapper clickOnIndex(int index)
           
 ComboTrapper clickOnIndex(int index, long millis)
           
 Class<JComboBox> getType()
           
 ComboTrapper log(String message)
           
 ComboTrapper requireEnabled()
          Checks that the component is enabled otherwise the test will fail
 ComboTrapper requireEnabled(boolean enabled)
          Checks whether the component is enabled or not
 ComboTrapper requireSelectedValue(Object object)
           
 ComboTrapper requireVisible()
          Checks the component is visible otherwise the test will fail
 ComboTrapper requireVisible(boolean visible)
          Checks whether the component is visible or not
 
Methods inherited from class org.viewaframework.test.component.AbstractComponentTrapper
applicationTrapper, getTarget, setTarget, view, view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComboTrapper

public ComboTrapper(ApplicationTrapper applicationTrapper,
                    String componentName)
Parameters:
applicationTrapper -
componentName -
Method Detail

clickOnIndex

public ComboTrapper clickOnIndex(int index)
Parameters:
index -
Returns:

clickOnIndex

public ComboTrapper clickOnIndex(int index,
                                 long millis)
Parameters:
index -
millis -
Returns:

getType

public Class<JComboBox> getType()
Returns:

log

public ComboTrapper log(String message)
Returns:

requireEnabled

public ComboTrapper requireEnabled()
Description copied from class: AbstractComponentTrapper
Checks that the component is enabled otherwise the test will fail

Specified by:
requireEnabled in class AbstractComponentTrapper<JComboBox>
Returns:

requireEnabled

public ComboTrapper requireEnabled(boolean enabled)
Description copied from class: AbstractComponentTrapper
Checks whether the component is enabled or not

Specified by:
requireEnabled in class AbstractComponentTrapper<JComboBox>
Returns:

requireSelectedValue

public ComboTrapper requireSelectedValue(Object object)
Parameters:
object -
Returns:

requireVisible

public ComboTrapper requireVisible()
Description copied from class: AbstractComponentTrapper
Checks the component is visible otherwise the test will fail

Specified by:
requireVisible in class AbstractComponentTrapper<JComboBox>
Returns:

requireVisible

public ComboTrapper requireVisible(boolean visible)
Description copied from class: AbstractComponentTrapper
Checks whether the component is visible or not

Specified by:
requireVisible in class AbstractComponentTrapper<JComboBox>
Returns:


Copyright © 2010. All Rights Reserved.