org.viewaframework.test
Class ListTrapper

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

public class ListTrapper
extends AbstractComponentTrapper<JList>


Constructor Summary
ListTrapper(ApplicationTrapper applicationTrapper, String componentName)
           
 
Method Summary
 ListTrapper clickOnIndex(int index)
           
 ListTrapper clickOnIndex(int index, long millis)
           
 ListTrapper clickOnIndexes(int[] indexes)
           
 ListTrapper clickOnIndexes(int[] indexes, long millis)
           
 Class<JList> getType()
           
 ListTrapper isEmpty()
           
 ListTrapper isEmpty(boolean empty)
           
 ListTrapper log(String message)
           
 ListTrapper requireEnabled()
          Checks that the component is enabled otherwise the test will fail
 ListTrapper requireEnabled(boolean enabled)
          Checks whether the component is enabled or not
 ListTrapper requireSelectedIndex(int index)
           
 ListTrapper requireSelectedIndexes(int[] indexes)
           
 ListTrapper requireSelectedValue(Object value)
           
 ListTrapper requireSelectedValues(Collection<?> values)
           
 ListTrapper requireVisible()
          Checks the component is visible otherwise the test will fail
 ListTrapper 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

ListTrapper

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

clickOnIndex

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

clickOnIndex

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

clickOnIndexes

public ListTrapper clickOnIndexes(int[] indexes)
Parameters:
indexes -
Returns:

clickOnIndexes

public ListTrapper clickOnIndexes(int[] indexes,
                                  long millis)
Parameters:
indexes -
millis -
Returns:

getType

public Class<JList> getType()
Returns:

isEmpty

public ListTrapper isEmpty()
Returns:

isEmpty

public ListTrapper isEmpty(boolean empty)
Returns:

log

public ListTrapper log(String message)
Returns:

requireEnabled

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

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

requireEnabled

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

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

requireSelectedIndex

public ListTrapper requireSelectedIndex(int index)
Parameters:
index -
Returns:

requireSelectedIndexes

public ListTrapper requireSelectedIndexes(int[] indexes)
Parameters:
indexes -
Returns:

requireSelectedValue

public ListTrapper requireSelectedValue(Object value)
Parameters:
value -
Returns:

requireSelectedValues

public ListTrapper requireSelectedValues(Collection<?> values)
Parameters:
values -
Returns:

requireVisible

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

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

requireVisible

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

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


Copyright © 2010. All Rights Reserved.