org.viewaframework.test
Class CheckBoxTrapper

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

public class CheckBoxTrapper
extends AbstractComponentTrapper<JCheckBox>

Author:
mario

Constructor Summary
CheckBoxTrapper(ApplicationTrapper applicationTrapper, String componentName)
           
 
Method Summary
 CheckBoxTrapper check()
           
 CheckBoxTrapper check(long millis)
           
 Class<JCheckBox> getType()
           
 Trapper<JCheckBox> log(String message)
           
 CheckBoxTrapper requireChecked()
           
 CheckBoxTrapper requireEnabled()
          Checks that the component is enabled otherwise the test will fail
 CheckBoxTrapper requireEnabled(boolean enabled)
          Checks whether the component is enabled or not
 CheckBoxTrapper requireText(String text)
           
 CheckBoxTrapper requireToolTipText(String text)
           
 CheckBoxTrapper requireUnchecked()
           
 CheckBoxTrapper requireVisible()
          Checks the component is visible otherwise the test will fail
 CheckBoxTrapper requireVisible(boolean visible)
          Checks whether the component is visible or not
 CheckBoxTrapper uncheck()
           
 CheckBoxTrapper uncheck(long millis)
           
 
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

CheckBoxTrapper

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

check

public CheckBoxTrapper check()
Returns:

check

public CheckBoxTrapper check(long millis)
Parameters:
millis -
Returns:

getType

public Class<JCheckBox> getType()
Returns:

log

public Trapper<JCheckBox> log(String message)
Returns:

requireChecked

public CheckBoxTrapper requireChecked()
Returns:

requireEnabled

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

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

requireEnabled

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

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

requireText

public CheckBoxTrapper requireText(String text)
Parameters:
text -
Returns:

requireToolTipText

public CheckBoxTrapper requireToolTipText(String text)
Parameters:
text -
Returns:

requireUnchecked

public CheckBoxTrapper requireUnchecked()
Returns:

requireVisible

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

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

requireVisible

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

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

uncheck

public CheckBoxTrapper uncheck()
Returns:

uncheck

public CheckBoxTrapper uncheck(long millis)
Parameters:
millis -
Returns:


Copyright © 2010. All Rights Reserved.