com.atlassian.jira.functest.framework.navigator
Class MultiSelectCondition

java.lang.Object
  extended by com.atlassian.jira.functest.framework.navigator.MultiSelectCondition
All Implemented Interfaces:
NavigatorCondition
Direct Known Subclasses:
ComponentCondition, IssueTypeCondition, PriorityCondition, ProjectCondition, ResolutionCondition, StatusCondition, VersionCondition

public abstract class MultiSelectCondition
extends Object
implements NavigatorCondition

Represents a navigator condition in a multi-select box.

Since:
v3.13

Constructor Summary
protected MultiSelectCondition(MultiSelectCondition condition)
           
protected MultiSelectCondition(String elementName)
           
protected MultiSelectCondition(String elementName, Collection<String> options)
           
 
Method Summary
 boolean addOption(String option)
           
 void addOptions(Collection<String> options)
           
 void assertSettings(net.sourceforge.jwebunit.WebTester tester)
          Assert that the condition is corrected configured for the passed tester.
 void clearOptions()
           
 boolean equals(Object o)
           
 String getElementName()
           
 Set<String> getOptions()
           
 int hashCode()
           
 void parseCondition(net.sourceforge.jwebunit.WebTester tester)
          Get the condition as configured on the web page.
 boolean removeOption(String option)
           
 void removeOptions(Collection<String> options)
           
 void setForm(net.sourceforge.jwebunit.WebTester tester)
          Set the Navigator options for this condition.
 void setOptions(Collection<String> options)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.functest.framework.navigator.NavigatorCondition
copyCondition, copyConditionForParse
 

Constructor Detail

MultiSelectCondition

protected MultiSelectCondition(String elementName)

MultiSelectCondition

protected MultiSelectCondition(String elementName,
                               Collection<String> options)

MultiSelectCondition

protected MultiSelectCondition(MultiSelectCondition condition)
Method Detail

setOptions

public void setOptions(Collection<String> options)

addOption

public boolean addOption(String option)

removeOption

public boolean removeOption(String option)

clearOptions

public void clearOptions()

addOptions

public void addOptions(Collection<String> options)

removeOptions

public void removeOptions(Collection<String> options)

getOptions

public Set<String> getOptions()

getElementName

public String getElementName()

setForm

public void setForm(net.sourceforge.jwebunit.WebTester tester)
Description copied from interface: NavigatorCondition
Set the Navigator options for this condition. The tester will be on the Navigator page when called.

Specified by:
setForm in interface NavigatorCondition
Parameters:
tester - the tester pointed at the Navigator page.

parseCondition

public void parseCondition(net.sourceforge.jwebunit.WebTester tester)
Description copied from interface: NavigatorCondition
Get the condition as configured on the web page. The tester will be on the Navigator page when called.

Specified by:
parseCondition in interface NavigatorCondition
Parameters:
tester - the tester pointed at the Navigator page.

assertSettings

public void assertSettings(net.sourceforge.jwebunit.WebTester tester)
Description copied from interface: NavigatorCondition
Assert that the condition is corrected configured for the passed tester. The tester must be on the Navigator page when called.

Specified by:
assertSettings in interface NavigatorCondition
Parameters:
tester - the tester pointed at the Navigator page.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.