org.viewaframework.test
Class ViewTrapper

java.lang.Object
  extended by org.viewaframework.test.ViewTrapper
All Implemented Interfaces:
ApplicationTrapperAware, PropertyAware, ComponentAware, Trapper<ViewContainer>

public class ViewTrapper
extends Object
implements Trapper<ViewContainer>, ApplicationTrapperAware, ComponentAware, PropertyAware

Author:
Mario Garcia

Constructor Summary
ViewTrapper(ApplicationTrapper applicationTrapper, String viewId)
           
 
Method Summary
 ApplicationTrapper applicationTrapper()
           
 ButtonTrapper button(String name)
           
 CheckBoxTrapper checkBox(String name)
           
 ComboTrapper combo(String name)
           
 ViewContainer getTarget()
           
 Class<ViewContainer> getType()
           
 ListTrapper list(String name)
           
 ViewTrapper log(String message)
           
 MenuItemTrapper menuItem(String name)
           
 PropertyTrapper property(String name)
           
 ViewTrapper requireOpened()
           
 ViewTrapper requireOpened(boolean openedOrClosed)
           
 void setTarget(ViewContainer target)
           
 TextTrapper text(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewTrapper

public ViewTrapper(ApplicationTrapper applicationTrapper,
                   String viewId)
Parameters:
applicationTrapper -
viewId -
Method Detail

applicationTrapper

public ApplicationTrapper applicationTrapper()
Specified by:
applicationTrapper in interface ApplicationTrapperAware

button

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

checkBox

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

combo

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

getTarget

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

getType

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

list

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

log

public ViewTrapper log(String message)
Specified by:
log in interface Trapper<ViewContainer>
Returns:

menuItem

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

property

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

requireOpened

public ViewTrapper requireOpened()
Returns:

requireOpened

public ViewTrapper requireOpened(boolean openedOrClosed)
Parameters:
openedOrClosed -
Returns:

setTarget

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

text

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


Copyright © 2010. All Rights Reserved.