com.atlassian.jira.pageobjects.components
Class MultiSelect
java.lang.Object
com.atlassian.jira.pageobjects.components.MultiSelect
public class MultiSelect
- extends Object
Minimal implementation of a FrotherControl. Constructor takes in the id the frother control is bound to.
- Since:
- v4.4
|
Constructor Summary |
MultiSelect(String id)
Constructs the minimal implementation based on a given select[multiple] id. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiSelect
public MultiSelect(String id)
- Constructs the minimal implementation based on a given select[multiple] id.
- Parameters:
id - the id of the select[multiple] element
initialize
public void initialize()
add
public void add(String item)
- Adds an item by typing it in and picking the first suggestion. Assumes that the item passed in
will be used as the lozenge label
- Parameters:
item - the item to add
remove
public void remove(String item)
- Removes a given item by clicking on the (x) next to the lozenge.
- Parameters:
item - the item to remove
clear
public void clear()
getItemByName
public MultiSelect.Item getItemByName(String name)
getItems
public List<MultiSelect.Item> getItems()
hasItems
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasItems()
hasItem
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasItem(String name)
Copyright © 2002-2011 Atlassian. All Rights Reserved.