org.viewaframework.test
Class ApplicationTrapper

java.lang.Object
  extended by org.viewaframework.test.ApplicationTrapper
All Implemented Interfaces:
PropertyAware, ViewTrapperAware, ComponentAware, Trapper<Application>

public class ApplicationTrapper
extends Object
implements Trapper<Application>, ViewTrapperAware, ComponentAware, PropertyAware

Author:
Mario Garcia

Constructor Summary
ApplicationTrapper()
           
ApplicationTrapper(Application application)
           
 
Method Summary
 ButtonTrapper button(String name)
           
 ButtonTrapper button(String viewID, String name)
           
 CheckBoxTrapper checkBox(String name)
           
 void close()
           
 ComboTrapper combo(String name)
           
 TrapperSettings getSettings()
           
 Application getTarget()
           
 Class<Application> getType()
           
 ListTrapper list(String name)
           
 ApplicationTrapper log(String message)
           
 MenuItemTrapper menuItem(String name)
           
 MenuItemTrapper menuItem(String viewID, String name)
           
 PropertyTrapper property(String name)
           
 PropertyTrapper property(String viewID, String name)
           
 ApplicationTrapper requireVisible()
          Checks that the application is visible
 ApplicationTrapper requireVisible(boolean visible)
          Checks whether the application is visible or not
 void setSettings(TrapperSettings settings)
           
 void setTarget(Application target)
           
 TextTrapper text(String name)
           
 TextTrapper text(String viewID, String name)
           
 ViewTrapper view()
           
 ViewTrapper view(String viewId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationTrapper

public ApplicationTrapper()

ApplicationTrapper

public ApplicationTrapper(Application application)
Parameters:
application -
Method Detail

button

public ButtonTrapper button(String name)
Specified by:
button in interface ComponentAware

button

public ButtonTrapper button(String viewID,
                            String name)
Parameters:
viewID -
name -
Returns:

checkBox

public CheckBoxTrapper checkBox(String name)
Specified by:
checkBox in interface ComponentAware

close

public void close()

combo

public ComboTrapper combo(String name)
Specified by:
combo in interface ComponentAware

getSettings

public TrapperSettings getSettings()
Returns:

getTarget

public Application getTarget()
Specified by:
getTarget in interface Trapper<Application>
Returns:

getType

public Class<Application> getType()
Specified by:
getType in interface Trapper<Application>
Returns:

list

public ListTrapper list(String name)
Specified by:
list in interface ComponentAware

log

public ApplicationTrapper log(String message)
Specified by:
log in interface Trapper<Application>
Returns:

menuItem

public MenuItemTrapper menuItem(String name)
Specified by:
menuItem in interface ComponentAware

menuItem

public MenuItemTrapper menuItem(String viewID,
                                String name)
Parameters:
viewID -
name -
Returns:

property

public PropertyTrapper property(String name)
Specified by:
property in interface PropertyAware

property

public PropertyTrapper property(String viewID,
                                String name)
Parameters:
viewID -
name -
Returns:

requireVisible

public ApplicationTrapper requireVisible()
Checks that the application is visible

Returns:

requireVisible

public ApplicationTrapper requireVisible(boolean visible)
Checks whether the application is visible or not

Parameters:
visible -
Returns:

setSettings

public void setSettings(TrapperSettings settings)
Parameters:
settings -

setTarget

public void setTarget(Application target)
Specified by:
setTarget in interface Trapper<Application>

text

public TextTrapper text(String name)
Specified by:
text in interface ComponentAware

text

public TextTrapper text(String viewID,
                        String name)
Parameters:
viewID -
name -
Returns:

view

public ViewTrapper view()
Specified by:
view in interface ViewTrapperAware
Returns:

view

public ViewTrapper view(String viewId)
Specified by:
view in interface ViewTrapperAware
Returns:


Copyright © 2010. All Rights Reserved.